public abstract class AbstractAuxiliaryCacheEventLogging extends AbstractAuxiliaryCache
You can override the public method, but if you don't, the default will call getWithTiming.
cacheEventLogger, elementSerializer, keyMatcherCACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE| Constructor and Description |
|---|
AbstractAuxiliaryCacheEventLogging() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
createICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getEventLoggingExtraInfo, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, setCacheEventLogger, setElementSerializer, setKeyMatcherclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuxiliaryCacheAttributes, getGroupKeys, getStatisticsgetCacheName, getSize, getStats, getStatusgetCacheTypepublic void update(ICacheElement cacheElement) throws java.io.IOException
cacheElement - java.io.IOExceptionprotected final void updateWithEventLogging(ICacheElement cacheElement) throws java.io.IOException
cacheElement - java.io.IOExceptionprotected abstract void processUpdate(ICacheElement cacheElement) throws java.io.IOException
cacheElement - java.io.IOExceptionpublic ICacheElement get(java.io.Serializable key) throws java.io.IOException
key - java.io.IOExceptionprotected final ICacheElement getWithEventLogging(java.io.Serializable key) throws java.io.IOException
key - java.io.IOExceptionprotected abstract ICacheElement processGet(java.io.Serializable key) throws java.io.IOException
key - java.io.IOExceptionpublic java.util.Map getMultiple(java.util.Set keys)
throws java.io.IOException
keys - java.io.IOExceptionprotected final java.util.Map getMultipleWithEventLogging(java.util.Set keys)
throws java.io.IOException
keys - java.io.IOExceptionprotected abstract java.util.Map processGetMultiple(java.util.Set keys)
throws java.io.IOException
keys - java.io.IOExceptionpublic 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.IOExceptionprotected final java.util.Map getMatchingWithEventLogging(java.lang.String pattern)
throws java.io.IOException
pattern - java.io.IOExceptionprotected abstract java.util.Map processGetMatching(java.lang.String pattern)
throws java.io.IOException
pattern - java.io.IOExceptionpublic boolean remove(java.io.Serializable key)
throws java.io.IOException
key - java.io.IOExceptionprotected final boolean removeWithEventLogging(java.io.Serializable key)
throws java.io.IOException
key - java.io.IOExceptionprotected abstract boolean processRemove(java.io.Serializable key)
throws java.io.IOException
key - java.io.IOExceptionpublic void removeAll()
throws java.io.IOException
java.io.IOExceptionprotected final void removeAllWithEventLogging()
throws java.io.IOException
java.io.IOExceptionprotected abstract void processRemoveAll()
throws java.io.IOException
java.io.IOExceptionpublic void dispose()
throws java.io.IOException
java.io.IOExceptionprotected final void disposeWithEventLogging()
throws java.io.IOException
java.io.IOExceptionprotected abstract void processDispose()
throws java.io.IOException
java.io.IOExceptionCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.