public class LateralCache<K,V> extends AbstractAuxiliaryCacheEventLogging<K,V>
ICacheType.CacheTypeNAME_COMPONENT_DELIMITER| Constructor and Description |
|---|
LateralCache(ILateralCacheAttributes cattr)
Deprecated.
Causes NPE
|
LateralCache(ILateralCacheAttributes cattr,
ICacheServiceNonLocal<K,V> lateral,
LateralCacheMonitor monitor)
Constructor for the LateralCache object
|
| Modifier and Type | Method and Description |
|---|---|
void |
fixCache(ICacheServiceNonLocal<K,V> restoredLateral)
Replaces the current remote cache service handle with the given handle.
|
ILateralCacheAttributes |
getAuxiliaryCacheAttributes()
This returns the generic attributes for an auxiliary cache.
|
String |
getCacheName()
Gets the cacheName attribute of the LateralCache object
|
ICacheType.CacheType |
getCacheType()
Gets the cacheType attribute of the LateralCache object
|
String |
getEventLoggingExtraInfo()
Gets the extra info for the event log.
|
Set<K> |
getKeySet()
Return the keys in this cache.
|
int |
getSize()
Returns the current cache size.
|
IStats |
getStatistics()
The NoWait on top does not call out to here yet.
|
String |
getStats()
getStats
|
CacheStatus |
getStatus()
Returns the cache status.
|
protected void |
processDispose()
Synchronously dispose the cache.
|
protected ICacheElement<K,V> |
processGet(K key)
The performance costs are too great.
|
protected Map<K,ICacheElement<K,V>> |
processGetMatching(String pattern)
Implementation of getMatching.
|
protected boolean |
processRemove(K key)
Synchronously remove from the remote cache; if failed, replace the remote handle with a
zombie.
|
protected void |
processRemoveAll()
Synchronously removeAll from the remote cache; if failed, replace the remote handle with a
zombie.
|
protected void |
processUpdate(ICacheElement<K,V> ce)
Update lateral.
|
String |
toString() |
dispose, disposeWithEventLogging, get, getMatching, getMatchingWithEventLogging, getMultiple, getMultipleWithEventLogging, getWithEventLogging, remove, removeAll, removeAllWithEventLogging, removeWithEventLogging, update, updateWithEventLoggingcreateICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, processGetMultiple, setCacheEventLogger, setElementSerializer, setKeyMatcherpublic LateralCache(ILateralCacheAttributes cattr, ICacheServiceNonLocal<K,V> lateral, LateralCacheMonitor monitor)
cattr - lateral - monitor - @Deprecated public LateralCache(ILateralCacheAttributes cattr)
cattr - protected void processUpdate(ICacheElement<K,V> ce) throws IOException
processUpdate in class AbstractAuxiliaryCacheEventLogging<K,V>ce - IOExceptionprotected ICacheElement<K,V> processGet(K key) throws IOException
processGet in class AbstractAuxiliaryCacheEventLogging<K,V>key - IOExceptionprotected Map<K,ICacheElement<K,V>> processGetMatching(String pattern) throws IOException
AbstractAuxiliaryCacheEventLoggingprocessGetMatching in class AbstractAuxiliaryCacheEventLogging<K,V>pattern - IOExceptionpublic Set<K> getKeySet() throws IOException
IOException - if access to the auxiliary cache failsAuxiliaryCache.getKeySet()protected boolean processRemove(K key) throws IOException
processRemove in class AbstractAuxiliaryCacheEventLogging<K,V>key - IOExceptionprotected void processRemoveAll()
throws IOException
processRemoveAll in class AbstractAuxiliaryCacheEventLogging<K,V>IOExceptionprotected void processDispose()
throws IOException
processDispose in class AbstractAuxiliaryCacheEventLogging<K,V>IOExceptionpublic CacheStatus getStatus()
public int getSize()
public ICacheType.CacheType getCacheType()
public String getCacheName()
public void fixCache(ICacheServiceNonLocal<K,V> restoredLateral)
restoredLateral - public String getStats()
public ILateralCacheAttributes getAuxiliaryCacheAttributes()
AuxiliaryCachepublic String getEventLoggingExtraInfo()
AbstractAuxiliaryCachegetEventLoggingExtraInfo in class AbstractAuxiliaryCache<K,V>public IStats getStatistics()
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.