org.apache.jcs.auxiliary.remote
Class RemoteCacheNoWaitFacade

java.lang.Object
  extended by org.apache.jcs.auxiliary.AbstractAuxiliaryCache
      extended by org.apache.jcs.auxiliary.remote.AbstractRemoteCacheNoWaitFacade
          extended by org.apache.jcs.auxiliary.remote.RemoteCacheNoWaitFacade
All Implemented Interfaces:
java.io.Serializable, AuxiliaryCache, ICache, ICacheType

public class RemoteCacheNoWaitFacade
extends AbstractRemoteCacheNoWaitFacade

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.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jcs.auxiliary.remote.AbstractRemoteCacheNoWaitFacade
noWaits, remoteCacheAttributes
 
Fields inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache
cacheEventLogger, elementSerializer, keyMatcher
 
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE
 
Constructor Summary
RemoteCacheNoWaitFacade(RemoteCacheNoWait[] noWaits, RemoteCacheAttributes rca, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
          Constructs with the given remote cache, and fires events to any listeners.
 
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, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteCacheNoWaitFacade

public RemoteCacheNoWaitFacade(RemoteCacheNoWait[] 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 -
Method Detail

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-2009 Apache Software Foundation. All Rights Reserved.