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, setName
public RemoteCacheFactory()
public <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
- cacheMgr
- cacheEventLogger
- elementSerializer
- public void initialize()
AbstractAuxiliaryCacheFactory
initialize
in interface AuxiliaryCacheFactory
initialize
in class AbstractAuxiliaryCacheFactory
AbstractAuxiliaryCacheFactory.initialize()
public void dispose()
AbstractAuxiliaryCacheFactory
dispose
in interface AuxiliaryCacheFactory
dispose
in class AbstractAuxiliaryCacheFactory
AbstractAuxiliaryCacheFactory.dispose()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.