public abstract class LateralCacheAbstractFactory extends Object implements AuxiliaryCacheFactory
The old factory tried to handle all types of laterals. It was gettting cluttered by ad hoc if statements. Since the javagroups lateral was jdk1.4 dependent it had to be moved. As such, the old factory could no longer import it. This motivated the change.
This abstraction layer should keep things cleaner.
Constructor and Description |
---|
LateralCacheAbstractFactory() |
Modifier and Type | Method and Description |
---|---|
abstract <K,V> AuxiliaryCache<K,V> |
createCache(AuxiliaryCacheAttributes attr,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Creates a lateral cache.
|
abstract <K,V> ILateralCacheListener<K,V> |
createListener(ILateralCacheAttributes lac,
ICompositeCacheManager cacheMgr)
Makes sure a listener gets created.
|
String |
getName()
Gets the name attribute of the LateralCacheFactory object
|
void |
setName(String name)
Sets the name attribute of the LateralCacheFactory object
|
public abstract <K,V> AuxiliaryCache<K,V> createCache(AuxiliaryCacheAttributes attr, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
createCache
in interface AuxiliaryCacheFactory
attr
- cacheMgr
- cacheEventLogger
- elementSerializer
- public abstract <K,V> ILateralCacheListener<K,V> createListener(ILateralCacheAttributes lac, ICompositeCacheManager cacheMgr)
This should be called by create cache.
lac
- ILateralCacheAttributescacheMgr
- public String getName()
getName
in interface AuxiliaryCacheFactory
public void setName(String name)
setName
in interface AuxiliaryCacheFactory
name
- The new name valueCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.