Package | Description |
---|---|
org.apache.commons.jcs |
Contains the class JCS which provides a simple interface for clients to use
JCS.
|
org.apache.commons.jcs.access |
Contains classes for accessing the cache.
|
org.apache.commons.jcs.access.behavior | |
org.apache.commons.jcs.auxiliary.disk |
The primary disk auxiliary.
|
org.apache.commons.jcs.engine |
Interfaces used by the core and the auxiliary caches.
|
org.apache.commons.jcs.engine.behavior |
Interfaces used by the core and the auxiliary caches.
|
org.apache.commons.jcs.engine.control |
The primary cache classes and the hub.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> CacheAccess<K,V> |
JCS.defineRegion(String name,
ICompositeCacheAttributes cattr,
IElementAttributes attr)
Deprecated.
Duplicate of getInstance(String, ICompositeCacheAttributes, IElementAttributes)
|
static <K,V> GroupCacheAccess<K,V> |
JCS.getGroupCacheInstance(String region,
ICompositeCacheAttributes icca,
IElementAttributes eattr)
Get a GroupCacheAccess which accesses the provided region.
|
static <K,V> CacheAccess<K,V> |
JCS.getInstance(String region,
ICompositeCacheAttributes icca,
IElementAttributes eattr)
Get a CacheAccess which accesses the provided region.
|
Modifier and Type | Method and Description |
---|---|
IElementAttributes |
PartitionedCacheAccess.getDefaultElementAttributes() |
IElementAttributes |
AbstractCacheAccess.getDefaultElementAttributes()
Retrieves A COPY OF the default element attributes used by this region.
|
IElementAttributes |
PartitionedCacheAccess.getElementAttributes(K key)
This is no more efficient than simply getting the cache element.
|
IElementAttributes |
CacheAccess.getElementAttributes(K name)
GetElementAttributes will return an attribute object describing the current attributes
associated with the object name.
|
Modifier and Type | Method and Description |
---|---|
void |
PartitionedCacheAccess.put(K key,
V object,
IElementAttributes attr)
Puts the value into the appropriate cache partition.
|
void |
CacheAccess.put(K key,
V val,
IElementAttributes attr)
Constructs a cache element with these attributes, and puts it into the cache.
|
void |
GroupCacheAccess.putInGroup(K name,
String groupName,
V value,
IElementAttributes attr)
Allows the user to put an object into a group within a particular cache
region.
|
void |
PartitionedCacheAccess.resetElementAttributes(K key,
IElementAttributes attributes)
Resets the attributes for this item.
|
void |
CacheAccess.resetElementAttributes(K name,
IElementAttributes attr)
Reset attributes for a particular element in the cache.
|
void |
PartitionedCacheAccess.setDefaultElementAttributes(IElementAttributes attr)
This method is does not reset the attributes for items already in the cache.
|
void |
AbstractCacheAccess.setDefaultElementAttributes(IElementAttributes attr)
This method is does not reset the attributes for items already in the cache.
|
Modifier and Type | Method and Description |
---|---|
IElementAttributes |
ICacheAccessManagement.getDefaultElementAttributes()
GetElementAttributes will return an attribute object describing the current attributes
associated with the object name.
|
IElementAttributes |
ICacheAccess.getElementAttributes(K name)
Gets the elementAttributes attribute of the ICacheAccess object
|
Modifier and Type | Method and Description |
---|---|
void |
ICacheAccess.put(K name,
V obj,
IElementAttributes attr)
Description of the Method
|
void |
IGroupCacheAccess.putInGroup(K key,
String group,
V obj,
IElementAttributes attr)
Put in the cache associated with this group using these attributes.
|
void |
ICacheAccess.resetElementAttributes(K name,
IElementAttributes attributes)
Reset the attributes on the object matching this key name.
|
void |
ICacheAccessManagement.setDefaultElementAttributes(IElementAttributes attr)
This method is does not reset the attributes for items already in the cache.
|
Modifier and Type | Method and Description |
---|---|
IElementAttributes |
PurgatoryElement.getElementAttributes() |
Modifier and Type | Method and Description |
---|---|
void |
PurgatoryElement.setElementAttributes(IElementAttributes attr) |
Modifier and Type | Class and Description |
---|---|
class |
ElementAttributes
This it the element attribute descriptor class.
|
Modifier and Type | Method and Description |
---|---|
IElementAttributes |
ElementAttributes.clone() |
IElementAttributes |
CacheElement.getElementAttributes()
Gets the IElementAttributes attribute of the CacheElement object
|
IElementAttributes |
CacheGroup.getElementAttrributes()
Gets the attrributes attribute of the CacheGroup object
|
Modifier and Type | Method and Description |
---|---|
void |
CacheGroup.setElementAttributes(IElementAttributes attr)
Sets the attributes attribute of the CacheGroup object
|
void |
CacheElement.setElementAttributes(IElementAttributes attr)
Sets the attributes attribute of the CacheElement object
|
Constructor and Description |
---|
CacheElement(String cacheName,
K key,
V val,
IElementAttributes attrArg)
Constructor for the CacheElement object
|
CacheElementSerialized(String cacheNameArg,
K keyArg,
byte[] serializedValueArg,
IElementAttributes elementAttributesArg)
Constructs a usable wrapper.
|
Modifier and Type | Method and Description |
---|---|
IElementAttributes |
IElementAttributes.clone()
Clone object
|
IElementAttributes |
ICacheElement.getElementAttributes()
Gets the attributes attribute of the ICacheElement<K, V> object
|
Modifier and Type | Method and Description |
---|---|
void |
ICacheElement.setElementAttributes(IElementAttributes attr)
Sets the attributes attribute of the ICacheElement<K, V> object
|
Modifier and Type | Method and Description |
---|---|
IElementAttributes |
CompositeCacheManager.getDefaultElementAttributes()
Gets the defaultElementAttributes attribute of the CacheHub object
|
IElementAttributes |
CompositeCache.getElementAttributes()
Gets the default element attribute of the Cache object This returns a copy.
|
IElementAttributes |
CompositeCache.getElementAttributes(K key)
Gets the elementAttributes attribute of the Cache object.
|
protected IElementAttributes |
CompositeCacheConfigurator.parseElementAttributes(Properties props,
String regName,
IElementAttributes defaultEAttr,
String regionPrefix)
Create the element attributes from the properties object for a cache region.
|
Modifier and Type | Method and Description |
---|---|
<K,V> CompositeCache<K,V> |
CompositeCacheManager.getCache(ICompositeCacheAttributes cattr,
IElementAttributes attr)
If the cache has already been created, then the CacheAttributes and the element Attributes
will be ignored.
|
<K,V> CompositeCache<K,V> |
CompositeCacheManager.getCache(String cacheName,
ICompositeCacheAttributes cattr,
IElementAttributes attr)
Gets the cache attribute of the CacheHub object
|
protected <K,V> CompositeCache<K,V> |
CompositeCacheConfigurator.newCache(ICompositeCacheAttributes cca,
IElementAttributes ea) |
protected IElementAttributes |
CompositeCacheConfigurator.parseElementAttributes(Properties props,
String regName,
IElementAttributes defaultEAttr,
String regionPrefix)
Create the element attributes from the properties object for a cache region.
|
void |
CompositeCache.setElementAttributes(IElementAttributes attr)
Sets the default element attribute of the Cache object.
|
Constructor and Description |
---|
CompositeCache(ICompositeCacheAttributes cattr,
IElementAttributes attr)
Constructor for the Cache object
|
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.