public class RemoteCacheFactory extends AbstractAuxiliaryCacheFactory
| Constructor and Description |
|---|
RemoteCacheFactory() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> AuxiliaryCache<K,V> |
createCache(AuxiliaryCacheAttributes iaca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
For LOCAL clients we get a handle to all the failovers, but we do not register a listener
with them.
|
void |
dispose()
Dispose of this factory, clean up shared resources
|
RemoteCacheManager |
getManager(IRemoteCacheAttributes cattr)
Returns an instance of RemoteCacheManager for the given connection parameters.
|
RemoteCacheManager |
getManager(IRemoteCacheAttributes cattr,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Returns an instance of RemoteCacheManager for the given connection parameters.
|
void |
initialize()
Initialize this factory
|
getName, setNamepublic <K,V> AuxiliaryCache<K,V> createCache(AuxiliaryCacheAttributes iaca, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
The failover runner will get a cache from the manager. When the primary is restored it will tell the manager for the failover to deregister the listener.
iaca - cacheMgr - cacheEventLogger - elementSerializer - public RemoteCacheManager getManager(IRemoteCacheAttributes cattr)
Host and Port uniquely identify a manager instance.
cattr - public RemoteCacheManager getManager(IRemoteCacheAttributes cattr, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
Host and Port uniquely identify a manager instance.
If the connection cannot be established, zombie objects will be used for future recovery purposes.
cattr - the cache configuration objectcacheMgr - the cache managercacheEventLogger - the event loggerelementSerializer - the serializer to use for sending and receivingpublic void initialize()
AuxiliaryCacheFactoryAuxiliaryCacheFactory.initialize()public void dispose()
AuxiliaryCacheFactoryAuxiliaryCacheFactory.dispose()Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.