|
||||||||||
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(java.io.Serializable key)
Gets the item from the cache. |
java.util.Map |
getMatching(java.lang.String pattern)
Gets items from the cache matching the given pattern. |
protected java.util.Map |
getMatchingWithEventLogging(java.lang.String pattern)
Gets mmatching items from the cache based on the given pattern. |
java.util.Map |
getMultiple(java.util.Set keys)
Gets multiple items from the cache based on the given set of keys. |
protected java.util.Map |
getMultipleWithEventLogging(java.util.Set keys)
Gets multiple items from the cache based on the given set of keys. |
protected ICacheElement |
getWithEventLogging(java.io.Serializable key)
Gets the item from the cache. |
protected abstract void |
processDispose()
Specific implementation of dispose. |
protected abstract ICacheElement |
processGet(java.io.Serializable key)
Implementation of get. |
protected abstract java.util.Map |
processGetMatching(java.lang.String pattern)
Implementation of getMatching. |
protected abstract java.util.Map |
processGetMultiple(java.util.Set keys)
Implementation of getMultiple. |
protected abstract boolean |
processRemove(java.io.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(java.io.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(java.io.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 java.io.IOException
cacheElement
-
java.io.IOException
protected final void updateWithEventLogging(ICacheElement cacheElement) throws java.io.IOException
cacheElement
-
java.io.IOException
protected abstract void processUpdate(ICacheElement cacheElement) throws java.io.IOException
cacheElement
-
java.io.IOException
public ICacheElement get(java.io.Serializable key) throws java.io.IOException
key
-
java.io.IOException
protected final ICacheElement getWithEventLogging(java.io.Serializable key) throws java.io.IOException
key
-
java.io.IOException
protected abstract ICacheElement processGet(java.io.Serializable key) throws java.io.IOException
key
-
java.io.IOException
public java.util.Map getMultiple(java.util.Set keys) throws java.io.IOException
keys
-
java.io.IOException
protected final java.util.Map getMultipleWithEventLogging(java.util.Set keys) throws java.io.IOException
keys
-
java.io.IOException
protected abstract java.util.Map processGetMultiple(java.util.Set keys) throws java.io.IOException
keys
-
java.io.IOException
public java.util.Map getMatching(java.lang.String pattern) throws java.io.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
-
java.io.IOException
protected final java.util.Map getMatchingWithEventLogging(java.lang.String pattern) throws java.io.IOException
pattern
-
java.io.IOException
protected abstract java.util.Map processGetMatching(java.lang.String pattern) throws java.io.IOException
pattern
-
java.io.IOException
public boolean remove(java.io.Serializable key) throws java.io.IOException
key
-
java.io.IOException
protected final boolean removeWithEventLogging(java.io.Serializable key) throws java.io.IOException
key
-
java.io.IOException
protected abstract boolean processRemove(java.io.Serializable key) throws java.io.IOException
key
-
java.io.IOException
public void removeAll() throws java.io.IOException
java.io.IOException
protected final void removeAllWithEventLogging() throws java.io.IOException
java.io.IOException
protected abstract void processRemoveAll() throws java.io.IOException
java.io.IOException
public void dispose() throws java.io.IOException
java.io.IOException
protected final void disposeWithEventLogging() throws java.io.IOException
java.io.IOException
protected abstract void processDispose() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |