public class LateralCacheNoWaitFacade<K,V> extends AbstractAuxiliaryCache<K,V>
ICacheType.CacheType
Modifier and Type | Field and Description |
---|---|
LateralCacheNoWait<K,V>[] |
noWaits
The queuing facade to the client.
|
Constructor and Description |
---|
LateralCacheNoWaitFacade(ILateralCacheListener<K,V> listener,
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.
|
void |
dispose()
Adds a dispose request to the lateral cache.
|
ICacheElement<K,V> |
get(K key)
Synchronously reads from the lateral cache.
|
AuxiliaryCacheAttributes |
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.
|
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.
|
String |
toString() |
void |
update(ICacheElement<K,V> ce)
Puts an item to the cache.
|
createICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, setCacheEventLogger, setElementSerializer, setKeyMatcher
public LateralCacheNoWait<K,V>[] noWaits
public LateralCacheNoWaitFacade(ILateralCacheListener<K,V> listener, LateralCacheNoWait<K,V>[] noWaits, ILateralCacheAttributes cattr)
noWaits
- cattr
- public boolean containsNoWait(LateralCacheNoWait<K,V> noWait)
noWait
- public boolean addNoWait(LateralCacheNoWait<K,V> noWait)
noWait
- public boolean removeNoWait(LateralCacheNoWait<K,V> noWait)
noWait
- public void update(ICacheElement<K,V> ce) throws IOException
ICache
ce
- IOException
public ICacheElement<K,V> get(K key)
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 AuxiliaryCacheAttributes getAuxiliaryCacheAttributes()
AuxiliaryCache
public String toString()
public String getEventLoggingExtraInfo()
getEventLoggingExtraInfo
in class AbstractAuxiliaryCache<K,V>
public String getStats()
public IStats getStatistics()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.