public class RemoteHttpCacheFactory extends AbstractAuxiliaryCacheFactory
Constructor and Description |
---|
RemoteHttpCacheFactory() |
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.
|
protected <V,K> IRemoteHttpCacheClient<K,V> |
createRemoteHttpCacheClientForAttributes(RemoteHttpCacheAttributes cattr)
This is an extension point.
|
void |
dispose()
Dispose of this factory, clean up shared resources
|
void |
initialize()
Initialize this factory
|
getName, setName
public RemoteHttpCacheFactory()
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
- protected <V,K> IRemoteHttpCacheClient<K,V> createRemoteHttpCacheClientForAttributes(RemoteHttpCacheAttributes cattr)
cattr
- the cache configurationpublic 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.