public class LateralCacheNoWaitFacade<K,V> extends AbstractAuxiliaryCache<K,V>
ICacheType.CacheType
Modifier and Type | Field and Description |
---|---|
LateralCacheNoWait<K,V>[] |
noWaits
Deprecated.
Should not have been public in the first place
|
NAME_COMPONENT_DELIMITER
Constructor and Description |
---|
LateralCacheNoWaitFacade(ILateralCacheListener<K,V> listener,
LateralCacheNoWait<K,V>[] noWaits,
ILateralCacheAttributes cattr)
Deprecated.
Use list constructor
|
LateralCacheNoWaitFacade(ILateralCacheListener<K,V> listener,
List<LateralCacheNoWait<K,V>> noWaits,
ILateralCacheAttributes cattr)
Constructs with the given lateral cache, and fires events to any listeners.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addNoWait(LateralCacheNoWait<K,V> noWait)
Adds a no wait to the list if it isn't already in the list.
|
boolean |
containsNoWait(LateralCacheNoWait<K,V> noWait)
Tells you if the no wait is in the list or not.
|
boolean |
containsNoWait(String tcpServer)
Tells you if the no wait is in the list or not by checking for its
identifying key
|
void |
dispose()
Adds a dispose request to the lateral cache.
|
ICacheElement<K,V> |
get(K key)
Synchronously reads from the lateral cache.
|
ILateralCacheAttributes |
getAuxiliaryCacheAttributes()
This returns the generic attributes for an auxiliary cache.
|
String |
getCacheName()
Gets the cacheName attribute of the LateralCacheNoWaitFacade object.
|
ICacheType.CacheType |
getCacheType()
Gets the cacheType attribute of the LateralCacheNoWaitFacade object.
|
String |
getEventLoggingExtraInfo()
this won't be called since we don't do ICache logging here.
|
Set<K> |
getKeySet()
Return the keys in this cache.
|
Map<K,ICacheElement<K,V>> |
getMatching(String pattern)
Synchronously reads from the lateral cache.
|
Map<K,ICacheElement<K,V>> |
getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
protected int |
getNoWaitSize()
Return the size of the no wait list (for testing)
|
int |
getSize()
No lateral invocation.
|
IStats |
getStatistics() |
String |
getStats()
getStats
|
CacheStatus |
getStatus()
Gets the status attribute of the LateralCacheNoWaitFacade object
|
boolean |
remove(K key)
Adds a remove request to the lateral cache.
|
void |
removeAll()
Adds a removeAll request to the lateral cache.
|
boolean |
removeNoWait(LateralCacheNoWait<K,V> noWait)
Removes a no wait from the list if it is already there.
|
boolean |
removeNoWait(String tcpServer)
Removes a no wait from the list if it is already there by its
identifying key
|
String |
toString() |
void |
update(ICacheElement<K,V> ce)
Update the cache element in all lateral caches
|
createICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, processGetMultiple, setCacheEventLogger, setElementSerializer, setKeyMatcher
@Deprecated public LateralCacheNoWait<K,V>[] noWaits
@Deprecated public LateralCacheNoWaitFacade(ILateralCacheListener<K,V> listener, LateralCacheNoWait<K,V>[] noWaits, ILateralCacheAttributes cattr)
listener
- the cache listenernoWaits
- the array of noWaitscattr
- the configurationpublic LateralCacheNoWaitFacade(ILateralCacheListener<K,V> listener, List<LateralCacheNoWait<K,V>> noWaits, ILateralCacheAttributes cattr)
listener
- the cache listenernoWaits
- the list of noWaitscattr
- the configurationprotected int getNoWaitSize()
public boolean containsNoWait(LateralCacheNoWait<K,V> noWait)
noWait
- public boolean containsNoWait(String tcpServer)
tcpServer
- the identifying keypublic boolean addNoWait(LateralCacheNoWait<K,V> noWait)
noWait
- public boolean removeNoWait(LateralCacheNoWait<K,V> noWait)
noWait
- public boolean removeNoWait(String tcpServer)
tcpServer
- the identifying key.public void update(ICacheElement<K,V> ce) throws IOException
ce
- the cache elementIOException
public ICacheElement<K,V> get(K key)
public Map<K,ICacheElement<K,V>> getMultiple(Set<K> keys)
keys
- public Map<K,ICacheElement<K,V>> getMatching(String pattern)
pattern
- public Set<K> getKeySet() throws IOException
IOException
- if access to the auxiliary cache failsAuxiliaryCache.getKeySet()
public boolean remove(K key)
key
- public void removeAll()
public void dispose()
public int getSize()
public ICacheType.CacheType getCacheType()
public String getCacheName()
public CacheStatus getStatus()
public ILateralCacheAttributes getAuxiliaryCacheAttributes()
AuxiliaryCache
public String getEventLoggingExtraInfo()
getEventLoggingExtraInfo
in class AbstractAuxiliaryCache<K,V>
public IStats getStatistics()
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.