public class LateralTCPCacheFactory extends AbstractAuxiliaryCacheFactory
The facade provides a front to the composite cache so the implementation is transparent.
Constructor and Description |
---|
LateralTCPCacheFactory() |
Modifier and Type | Method and Description |
---|---|
<K,V> LateralCacheNoWaitFacade<K,V> |
createCache(AuxiliaryCacheAttributes iaca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Creates a TCP lateral.
|
<K,V> LateralCacheNoWait<K,V> |
createCacheNoWait(ITCPLateralCacheAttributes lca,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Create a LateralCacheNoWait for the server configured in lca
|
void |
dispose()
Dispose of this factory, clean up shared resources
|
<K,V> ICacheServiceNonLocal<K,V> |
getCSNLInstance(ITCPLateralCacheAttributes lca)
Deprecated.
Specify serializer
|
<K,V> ICacheServiceNonLocal<K,V> |
getCSNLInstance(ITCPLateralCacheAttributes lca,
IElementSerializer elementSerializer)
Returns an instance of the cache service.
|
void |
initialize()
Initialize this factory
|
void |
monitorCache(LateralCacheNoWait<?,?> cache)
Add cache instance to monitor
|
getName, setName
public LateralTCPCacheFactory()
public <K,V> LateralCacheNoWaitFacade<K,V> createCache(AuxiliaryCacheAttributes iaca, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
K
- cache key typeV
- cache value typeiaca
- the cache configuration objectcacheMgr
- the cache managercacheEventLogger
- the event loggerelementSerializer
- the serializer to use when sending or receivingpublic <K,V> LateralCacheNoWait<K,V> createCacheNoWait(ITCPLateralCacheAttributes lca, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
K
- cache key typeV
- cache value typelca
- the cache configuration objectcacheEventLogger
- the event loggerelementSerializer
- the serializer to use when sending or receivingpublic void initialize()
public void dispose()
@Deprecated public <K,V> ICacheServiceNonLocal<K,V> getCSNLInstance(ITCPLateralCacheAttributes lca)
K
- cache key typeV
- cache value typelca
- configuration for the creation of a new service instancepublic <K,V> ICacheServiceNonLocal<K,V> getCSNLInstance(ITCPLateralCacheAttributes lca, IElementSerializer elementSerializer)
K
- cache key typeV
- cache value typelca
- configuration for the creation of a new service instanceelementSerializer
- the serializer to use when sending or receivingpublic void monitorCache(LateralCacheNoWait<?,?> cache)
cache
- the cache instanceCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.