Package | Description |
---|---|
org.apache.commons.jcs.auxiliary |
Root package for auxiliary caches.
|
org.apache.commons.jcs.auxiliary.disk |
The primary disk auxiliary.
|
org.apache.commons.jcs.auxiliary.disk.block | |
org.apache.commons.jcs.auxiliary.disk.indexed | |
org.apache.commons.jcs.auxiliary.disk.jdbc | |
org.apache.commons.jcs.auxiliary.disk.jdbc.hsql | |
org.apache.commons.jcs.auxiliary.disk.jdbc.mysql | |
org.apache.commons.jcs.auxiliary.lateral |
Root package for the lateral cache family.
|
org.apache.commons.jcs.auxiliary.lateral.socket.tcp | |
org.apache.commons.jcs.auxiliary.remote |
Root package for the remote auxiliary cache.
|
org.apache.commons.jcs.auxiliary.remote.http.client | |
org.apache.commons.jcs.jcache.serialization | |
org.apache.commons.jcs.utils.serialization |
Modifier and Type | Method and Description |
---|---|
IElementSerializer |
AbstractAuxiliaryCache.getElementSerializer()
Allows it to be injected.
|
static IElementSerializer |
AuxiliaryCacheConfigurator.parseElementSerializer(Properties props,
String auxPrefix)
Parses the element config, if there is any for the auxiliary.
|
Modifier and Type | Method and Description |
---|---|
<K,V> AuxiliaryCache<K,V> |
AuxiliaryCacheFactory.createCache(AuxiliaryCacheAttributes attr,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Creates an auxiliary using the supplied attributes.
|
void |
AuxiliaryCache.setElementSerializer(IElementSerializer elementSerializer)
Allows you to inject a custom serializer.
|
void |
AbstractAuxiliaryCache.setElementSerializer(IElementSerializer elementSerializer)
Allows you to inject a custom serializer.
|
Modifier and Type | Method and Description |
---|---|
IElementSerializer |
AbstractDiskCacheManager.getElementSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractDiskCacheManager.setElementSerializer(IElementSerializer elementSerializer) |
Modifier and Type | Method and Description |
---|---|
<K,V> AuxiliaryCache<K,V> |
BlockDiskCacheFactory.createCache(AuxiliaryCacheAttributes iaca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Get an instance of the BlockDiskCacheManager for the attributes and then get an
IndexedDiskCache from the manager.
|
static BlockDiskCacheManager |
BlockDiskCacheManager.getInstance(BlockDiskCacheAttributes defaultCacheAttributes,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Gets the singleton instance of the manager
|
Constructor and Description |
---|
BlockDisk(File file,
IElementSerializer elementSerializer)
Constructor for the Disk object
|
BlockDisk(File file,
int blockSizeBytes,
IElementSerializer elementSerializer)
Creates the file and set the block size in bytes.
|
BlockDiskCache(BlockDiskCacheAttributes cacheAttributes,
IElementSerializer elementSerializer)
Constructs the BlockDisk after setting up the root directory.
|
Modifier and Type | Method and Description |
---|---|
<K,V> AuxiliaryCache<K,V> |
IndexedDiskCacheFactory.createCache(AuxiliaryCacheAttributes iaca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Get an instance of the IndexDiskCacheManager for the attributes and then get an
IndexedDiskCache from the manager.
|
static IndexedDiskCacheManager |
IndexedDiskCacheManager.getInstance(IndexedDiskCacheAttributes defaultCacheAttributes,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Gets the singleton instance of the manager
|
Constructor and Description |
---|
IndexedDiskCache(IndexedDiskCacheAttributes cattr,
IElementSerializer elementSerializer)
Constructor for the DiskCache object.
|
Modifier and Type | Method and Description |
---|---|
IElementSerializer |
JDBCDiskCache.getElementSerializer() |
Modifier and Type | Method and Description |
---|---|
<K,V> AuxiliaryCache<K,V> |
JDBCDiskCacheFactory.createCache(AuxiliaryCacheAttributes rawAttr,
ICompositeCacheManager compositeCacheManager,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
This factory method should create an instance of the mysqlcache.
|
static JDBCDiskCacheManager |
JDBCDiskCacheManager.getInstance(JDBCDiskCacheAttributes cattr,
ICompositeCacheManager compositeCacheManager,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Gets the instance attribute of the HSQLCacheManager class
|
void |
JDBCDiskCache.setElementSerializer(IElementSerializer elementSerializer) |
Modifier and Type | Method and Description |
---|---|
<K,V> AuxiliaryCache<K,V> |
HSQLDiskCacheFactory.createCache(AuxiliaryCacheAttributes rawAttr,
ICompositeCacheManager cacheManager,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
This factory method should create an instance of the hsqlcache.
|
Modifier and Type | Method and Description |
---|---|
<K,V> AuxiliaryCache<K,V> |
MySQLDiskCacheFactory.createCache(AuxiliaryCacheAttributes rawAttr,
ICompositeCacheManager cacheManager,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
This factory method should create an instance of the mysqlcache.
|
static MySQLDiskCacheManager |
MySQLDiskCacheManager.getInstance(MySQLDiskCacheAttributes cattr,
ICompositeCacheManager compositeCacheManager,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Gets the instance attribute of the HSQLCacheManager class
|
Modifier and Type | Method and Description |
---|---|
abstract <K,V> AuxiliaryCache<K,V> |
LateralCacheAbstractFactory.createCache(AuxiliaryCacheAttributes attr,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Creates a lateral cache.
|
Modifier and Type | Method and Description |
---|---|
<K,V> AuxiliaryCache<K,V> |
LateralTCPCacheFactory.createCache(AuxiliaryCacheAttributes iaca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Creates a TCP lateral.
|
LateralTCPDiscoveryListener |
LateralTCPDiscoveryListenerManager.getDiscoveryListener(ITCPLateralCacheAttributes ilca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Gets the instance attribute of the LateralCacheTCPListener class.
|
static LateralTCPCacheManager |
LateralTCPCacheManager.getInstance(ITCPLateralCacheAttributes lca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Returns an instance of the LateralCacheManager.
|
Constructor and Description |
---|
LateralTCPDiscoveryListener(ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
This plugs into the udp discovery system.
|
Modifier and Type | Method and Description |
---|---|
<K,V> AuxiliaryCache<K,V> |
RemoteCacheFactory.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.
|
static RemoteCacheManager |
RemoteCacheManager.getInstance(IRemoteCacheAttributes cattr,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Returns an instance of RemoteCacheManager for the given connection parameters.
|
Constructor and Description |
---|
AbstractRemoteCacheNoWaitFacade(RemoteCacheNoWait<K,V>[] noWaits,
RemoteCacheAttributes rca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Constructs with the given remote cache, and fires events to any listeners.
|
RemoteCacheFailoverRunner(RemoteCacheNoWaitFacade<K,V> facade,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Constructor for the RemoteCacheFailoverRunner object.
|
RemoteCacheNoWaitFacade(RemoteCacheNoWait<K,V>[] noWaits,
RemoteCacheAttributes rca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Constructs with the given remote cache, and fires events to any listeners.
|
Modifier and Type | Method and Description |
---|---|
<K,V> AuxiliaryCache<K,V> |
RemoteHttpCacheFactory.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.
|
static RemoteHttpCacheManager |
RemoteHttpCacheManager.getInstance(ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Get the singleton instance.
|
Modifier and Type | Method and Description |
---|---|
static <K> K |
Serializations.copy(IElementSerializer serializer,
ClassLoader loader,
K key) |
Modifier and Type | Class and Description |
---|---|
class |
CompressingSerializer
Performs default serialization and de-serialization.
|
class |
StandardSerializer
Performs default serialization and de-serialization.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> ICacheElement<K,V> |
SerializationConversionUtil.getDeSerializedCacheElement(ICacheElementSerialized<K,V> serialized,
IElementSerializer elementSerializer)
This returns a wrapper that has a de-serialized version of the value
instead of the serialized value.
|
static <K,V> ICacheElementSerialized<K,V> |
SerializationConversionUtil.getSerializedCacheElement(ICacheElement<K,V> element,
IElementSerializer elementSerializer)
This returns a wrapper that has a serialized version of the value instead
of the value.
|
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.