org.apache.jcs.auxiliary.remote
Class RemoteCacheNoWaitFacade<K extends Serializable,V extends Serializable>

java.lang.Object
  extended by org.apache.jcs.auxiliary.AbstractAuxiliaryCache<K,V>
      extended by org.apache.jcs.auxiliary.remote.AbstractRemoteCacheNoWaitFacade<K,V>
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.jcs.engine.behavior.ICacheType
ICacheType.CacheType
 
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
 
Constructor Summary
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.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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