|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.AbstractAuxiliaryCache
org.apache.jcs.auxiliary.AbstractAuxiliaryCacheEventLogging
public abstract class AbstractAuxiliaryCacheEventLogging
All ICacheEvents are defined as final. Children must implement process events. These are wrapped in event log parent calls.
You can override the public method, but if you don't, the default will call getWithTiming.
Field Summary |
---|
Fields inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
---|
cacheEventLogger, elementSerializer, keyMatcher |
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
---|
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
Constructor Summary | |
---|---|
AbstractAuxiliaryCacheEventLogging()
|
Method Summary | |
---|---|
void |
dispose()
Synchronously dispose the remote cache; if failed, replace the remote handle with a zombie. |
protected void |
disposeWithEventLogging()
Synchronously dispose the remote cache; if failed, replace the remote handle with a zombie. |
ICacheElement |
get(Serializable key)
Gets the item from the cache. |
Map |
getMatching(String pattern)
Gets items from the cache matching the given pattern. |
protected Map |
getMatchingWithEventLogging(String pattern)
Gets mmatching items from the cache based on the given pattern. |
Map |
getMultiple(Set keys)
Gets multiple items from the cache based on the given set of keys. |
protected Map |
getMultipleWithEventLogging(Set keys)
Gets multiple items from the cache based on the given set of keys. |
protected ICacheElement |
getWithEventLogging(Serializable key)
Gets the item from the cache. |
protected abstract void |
processDispose()
Specific implementation of dispose. |
protected abstract ICacheElement |
processGet(Serializable key)
Implementation of get. |
protected abstract Map |
processGetMatching(String pattern)
Implementation of getMatching. |
protected abstract Map |
processGetMultiple(Set keys)
Implementation of getMultiple. |
protected abstract boolean |
processRemove(Serializable key)
Specific implementation of remove. |
protected abstract void |
processRemoveAll()
Specific implementation of removeAll. |
protected abstract void |
processUpdate(ICacheElement cacheElement)
Implementation of put. |
boolean |
remove(Serializable key)
Removes the item from the cache. |
void |
removeAll()
Removes all from the region. |
protected void |
removeAllWithEventLogging()
Removes all from the region. |
protected boolean |
removeWithEventLogging(Serializable key)
Removes the item from the cache. |
void |
update(ICacheElement cacheElement)
Puts an item into the cache. |
protected void |
updateWithEventLogging(ICacheElement cacheElement)
Puts an item into the cache. |
Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
---|
createICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getEventLoggingExtraInfo, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, setCacheEventLogger, setElementSerializer, setKeyMatcher |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jcs.auxiliary.AuxiliaryCache |
---|
getAuxiliaryCacheAttributes, getGroupKeys, getStatistics |
Methods inherited from interface org.apache.jcs.engine.behavior.ICache |
---|
getCacheName, getSize, getStats, getStatus |
Methods inherited from interface org.apache.jcs.engine.behavior.ICacheType |
---|
getCacheType |
Constructor Detail |
---|
public AbstractAuxiliaryCacheEventLogging()
Method Detail |
---|
public void update(ICacheElement cacheElement) throws IOException
cacheElement
-
IOException
protected final void updateWithEventLogging(ICacheElement cacheElement) throws IOException
cacheElement
-
IOException
protected abstract void processUpdate(ICacheElement cacheElement) throws IOException
cacheElement
-
IOException
public ICacheElement get(Serializable key) throws IOException
key
-
IOException
protected final ICacheElement getWithEventLogging(Serializable key) throws IOException
key
-
IOException
protected abstract ICacheElement processGet(Serializable key) throws IOException
key
-
IOException
public Map getMultiple(Set keys) throws IOException
keys
-
IOException
protected final Map getMultipleWithEventLogging(Set keys) throws IOException
keys
-
IOException
protected abstract Map processGetMultiple(Set keys) throws IOException
keys
-
IOException
public Map getMatching(String pattern) throws IOException
This only works with string keys. It's too expensive to do a toString on every key.
Auxiliaries will do their best to handle simple expressions. For instance, the JDBC disk cache will convert * to % and . to _
pattern
-
IOException
protected final Map getMatchingWithEventLogging(String pattern) throws IOException
pattern
-
IOException
protected abstract Map processGetMatching(String pattern) throws IOException
pattern
-
IOException
public boolean remove(Serializable key) throws IOException
key
-
IOException
protected final boolean removeWithEventLogging(Serializable key) throws IOException
key
-
IOException
protected abstract boolean processRemove(Serializable key) throws IOException
key
-
IOException
public void removeAll() throws IOException
IOException
protected final void removeAllWithEventLogging() throws IOException
IOException
protected abstract void processRemoveAll() throws IOException
IOException
public void dispose() throws IOException
IOException
protected final void disposeWithEventLogging() throws IOException
IOException
protected abstract void processDispose() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |