public abstract class AbstractRemoteCacheNoWaitFacade extends AbstractAuxiliaryCache
Modifier and Type | Field and Description |
---|---|
RemoteCacheNoWait[] |
noWaits
The connection to a remote server, or a zombie.
|
protected IRemoteCacheAttributes |
remoteCacheAttributes
holds failover and cluster information
|
cacheEventLogger, elementSerializer, keyMatcher
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE
Constructor and Description |
---|
AbstractRemoteCacheNoWaitFacade(RemoteCacheNoWait[] noWaits,
RemoteCacheAttributes rca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Constructs with the given remote cache, and fires events to any listeners.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Adds a dispose request to the remote cache.
|
ICacheElement |
get(java.io.Serializable key)
Synchronously reads from the remote cache.
|
AuxiliaryCacheAttributes |
getAuxiliaryCacheAttributes()
This returns the generic attributes for an auxiliary cache.
|
java.lang.String |
getCacheName()
Gets the cacheName attribute of the RemoteCacheNoWaitFacade object.
|
int |
getCacheType()
Gets the cacheType attribute of the RemoteCacheNoWaitFacade object.
|
protected ICompositeCacheManager |
getCompositeCacheManager() |
java.lang.String |
getEventLoggingExtraInfo()
This typically returns end point info .
|
java.util.Set |
getGroupKeys(java.lang.String group)
Gets the set of keys of objects currently in the group.
|
java.util.Map |
getMatching(java.lang.String pattern)
Synchronously read from the remote cache.
|
java.util.Map |
getMultiple(java.util.Set keys)
Gets multiple items from the cache based on the given set of keys.
|
IRemoteCacheAttributes |
getRemoteCacheAttributes()
Gets the remoteCacheAttributes attribute of the RemoteCacheNoWaitFacade object
|
int |
getSize()
No remote invocation.
|
IStats |
getStatistics() |
java.lang.String |
getStats()
getStats
|
int |
getStatus()
Gets the status attribute of the RemoteCacheNoWaitFacade object
|
boolean |
remove(java.io.Serializable key)
Adds a remove request to the remote cache.
|
void |
removeAll()
Adds a removeAll request to the remote cache.
|
protected void |
setCompositeCacheManager(ICompositeCacheManager compositeCacheManager) |
void |
setRemoteCacheAttributes(IRemoteCacheAttributes rca)
Sets the remoteCacheAttributes attribute of the RemoteCacheNoWaitFacade object.
|
java.lang.String |
toString()
String form of some of the configuration information for the remote cache.
|
void |
update(ICacheElement ce)
Put an element in the cache.
|
createICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, setCacheEventLogger, setElementSerializer, setKeyMatcher
public RemoteCacheNoWait[] noWaits
protected IRemoteCacheAttributes remoteCacheAttributes
public AbstractRemoteCacheNoWaitFacade(RemoteCacheNoWait[] noWaits, RemoteCacheAttributes rca, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
noWaits
- rca
- cacheMgr
- cacheEventLogger
- elementSerializer
- public void update(ICacheElement ce) throws java.io.IOException
ce
- java.io.IOException
public ICacheElement get(java.io.Serializable key)
key
- public java.util.Map getMatching(java.lang.String pattern) throws java.io.IOException
pattern
- java.io.IOException
public java.util.Map getMultiple(java.util.Set keys)
keys
- public java.util.Set getGroupKeys(java.lang.String group) throws java.io.IOException
group
- java.io.IOException
public boolean remove(java.io.Serializable key)
key
- public void removeAll()
public void dispose()
public int getSize()
public int getCacheType()
public java.lang.String getCacheName()
public int getStatus()
Return ALIVE if any are alive.
public java.lang.String toString()
toString
in class java.lang.Object
public AuxiliaryCacheAttributes getAuxiliaryCacheAttributes()
AuxiliaryCache
public java.lang.String getStats()
public IStats getStatistics()
public java.lang.String getEventLoggingExtraInfo()
getEventLoggingExtraInfo
in class AbstractAuxiliaryCache
public IRemoteCacheAttributes getRemoteCacheAttributes()
public void setRemoteCacheAttributes(IRemoteCacheAttributes rca)
rca
- The new remoteCacheAttributes valueprotected void setCompositeCacheManager(ICompositeCacheManager compositeCacheManager)
compositeCacheManager
- the compositeCacheManager to setprotected ICompositeCacheManager getCompositeCacheManager()
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.