org.apache.jcs.auxiliary.remote
Class RemoteCacheNoWaitFacade<K extends Serializable,V extends Serializable>
java.lang.Object
org.apache.jcs.auxiliary.AbstractAuxiliaryCache<K,V>
org.apache.jcs.auxiliary.remote.AbstractRemoteCacheNoWaitFacade<K,V>
org.apache.jcs.auxiliary.remote.RemoteCacheNoWaitFacade<K,V>
- All Implemented Interfaces:
- AuxiliaryCache<K,V>, ICache<K,V>, ICacheType
public class RemoteCacheNoWaitFacade<K extends Serializable,V extends Serializable>
- extends AbstractRemoteCacheNoWaitFacade<K,V>
Used to provide access to multiple services under nowait protection. Factory should construct
NoWaitFacade to give to the composite cache out of caches it constructs from the varies manager
to lateral services.
Typically, we only connect to one remote server per facade. We use a list of one
RemoteCacheNoWait.
|
Method Summary |
protected void |
failover(int i)
Begin the failover process if this is a local cache. |
| Methods inherited from class org.apache.jcs.auxiliary.remote.AbstractRemoteCacheNoWaitFacade |
dispose, get, getAuxiliaryCacheAttributes, getCacheName, getCacheType, getCompositeCacheManager, getEventLoggingExtraInfo, getGroupKeys, getGroupNames, getMatching, getMultiple, getRemoteCacheAttributes, getSize, getStatistics, getStats, getStatus, remove, removeAll, setCompositeCacheManager, setRemoteCacheAttributes, toString, update |
| Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
createICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, setCacheEventLogger, setElementSerializer, setKeyMatcher |
RemoteCacheNoWaitFacade
public RemoteCacheNoWaitFacade(RemoteCacheNoWait<K,V>[] noWaits,
RemoteCacheAttributes rca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
- Constructs with the given remote cache, and fires events to any listeners.
- Parameters:
noWaits - rca - cacheMgr - cacheEventLogger - elementSerializer -
failover
protected void failover(int i)
- Begin the failover process if this is a local cache. Clustered remote caches do not failover.
- Parameters:
i - The no wait in error.
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.