public abstract class AbstractAuxiliaryCacheEventLogging<K,V> extends AbstractAuxiliaryCache<K,V>
ICacheType.CacheType| 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<K,V> |
get(K key)
Gets the item from the cache.
|
Map<K,ICacheElement<K,V>> |
getMatching(String pattern)
Gets items from the cache matching the given pattern.
|
protected Map<K,ICacheElement<K,V>> |
getMatchingWithEventLogging(String pattern)
Gets mmatching items from the cache based on the given pattern.
|
Map<K,ICacheElement<K,V>> |
getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
protected Map<K,ICacheElement<K,V>> |
getMultipleWithEventLogging(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
protected ICacheElement<K,V> |
getWithEventLogging(K key)
Gets the item from the cache.
|
protected abstract void |
processDispose()
Specific implementation of dispose.
|
protected abstract ICacheElement<K,V> |
processGet(K key)
Implementation of get.
|
protected abstract Map<K,ICacheElement<K,V>> |
processGetMatching(String pattern)
Implementation of getMatching.
|
protected abstract Map<K,ICacheElement<K,V>> |
processGetMultiple(Set<K> keys)
Implementation of getMultiple.
|
protected abstract boolean |
processRemove(K key)
Specific implementation of remove.
|
protected abstract void |
processRemoveAll()
Specific implementation of removeAll.
|
protected abstract void |
processUpdate(ICacheElement<K,V> cacheElement)
Implementation of put.
|
boolean |
remove(K 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(K key)
Removes the item from the cache.
|
void |
update(ICacheElement<K,V> cacheElement)
Puts an item into the cache.
|
protected void |
updateWithEventLogging(ICacheElement<K,V> 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, getKeySet, getStatisticsgetCacheName, getSize, getStats, getStatusgetCacheTypepublic AbstractAuxiliaryCacheEventLogging()
public void update(ICacheElement<K,V> cacheElement) throws IOException
cacheElement - IOExceptionprotected final void updateWithEventLogging(ICacheElement<K,V> cacheElement) throws IOException
cacheElement - IOExceptionprotected abstract void processUpdate(ICacheElement<K,V> cacheElement) throws IOException
cacheElement - IOExceptionpublic ICacheElement<K,V> get(K key) throws IOException
key - IOExceptionprotected final ICacheElement<K,V> getWithEventLogging(K key) throws IOException
key - IOExceptionprotected abstract ICacheElement<K,V> processGet(K key) throws IOException
key - IOExceptionpublic Map<K,ICacheElement<K,V>> getMultiple(Set<K> keys) throws IOException
keys - IOExceptionprotected final Map<K,ICacheElement<K,V>> getMultipleWithEventLogging(Set<K> keys) throws IOException
keys - IOExceptionprotected abstract Map<K,ICacheElement<K,V>> processGetMultiple(Set<K> keys) throws IOException
keys - IOExceptionpublic Map<K,ICacheElement<K,V>> getMatching(String pattern) throws IOException
pattern - IOExceptionprotected final Map<K,ICacheElement<K,V>> getMatchingWithEventLogging(String pattern) throws IOException
pattern - IOExceptionprotected abstract Map<K,ICacheElement<K,V>> processGetMatching(String pattern) throws IOException
pattern - IOExceptionpublic boolean remove(K key) throws IOException
key - IOExceptionprotected final boolean removeWithEventLogging(K key) throws IOException
key - IOExceptionprotected abstract boolean processRemove(K key) throws IOException
key - IOExceptionpublic void removeAll() throws IOException
IOExceptionprotected final void removeAllWithEventLogging() throws IOException
IOExceptionprotected abstract void processRemoveAll() throws IOException
IOExceptionpublic void dispose() throws IOException
IOExceptionprotected final void disposeWithEventLogging() throws IOException
IOExceptionprotected abstract void processDispose() throws IOException
IOExceptionCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.