|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.access.CacheAccess
org.apache.jcs.access.GroupCacheAccess
public class GroupCacheAccess
Access for groups.
Field Summary |
---|
Fields inherited from class org.apache.jcs.access.CacheAccess |
---|
cacheControl |
Constructor Summary | |
---|---|
GroupCacheAccess(CompositeCache cacheControl)
Constructor for the GroupCacheAccess object |
Method Summary | |
---|---|
java.lang.Object |
getFromGroup(java.lang.Object name,
java.lang.String group)
Gets an item out of the cache that is in a specified group. |
static GroupCacheAccess |
getGroupAccess(java.lang.String region)
Gets the groupAccess attribute of the GroupCacheAccess class. |
static GroupCacheAccess |
getGroupAccess(java.lang.String region,
ICompositeCacheAttributes icca)
Gets the groupAccess attribute of the GroupCacheAccess class. |
java.util.Set |
getGroupKeys(java.lang.String group)
Gets the set of keys of objects currently in the group. |
void |
invalidateGroup(java.lang.String group)
Invalidates a group: remove all the group members |
void |
putInGroup(java.lang.Object name,
java.lang.String groupName,
java.lang.Object value)
Allows the user to put an object into a group within a particular cache region. |
void |
putInGroup(java.lang.Object name,
java.lang.String groupName,
java.lang.Object value,
IElementAttributes attr)
Allows the user to put an object into a group within a particular cache region. |
void |
remove(java.lang.Object name,
java.lang.String group)
Remove the item from this group in this region by this name. |
Methods inherited from class org.apache.jcs.access.CacheAccess |
---|
clear, defineRegion, defineRegion, defineRegion, destroy, destroy, dispose, ensureCacheManager, freeMemoryElements, get, getAccess, getAccess, getCacheAttributes, getCacheElement, getCacheElements, getDefaultElementAttributes, getElementAttributes, getElementAttributes, getMatching, getMatchingCacheElements, getStatistics, getStats, put, put, putSafe, remove, remove, resetElementAttributes, resetElementAttributes, setCacheAttributes, setDefaultElementAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jcs.access.behavior.ICacheAccess |
---|
destroy, destroy, freeMemoryElements, get, getCacheAttributes, getCacheElement, getCacheElements, getElementAttributes, getElementAttributes, getMatching, getMatchingCacheElements, put, put, putSafe, remove, remove, resetElementAttributes, resetElementAttributes, setCacheAttributes |
Constructor Detail |
---|
public GroupCacheAccess(CompositeCache cacheControl)
cacheControl
- Method Detail |
---|
public static GroupCacheAccess getGroupAccess(java.lang.String region) throws CacheException
region
-
CacheException
public static GroupCacheAccess getGroupAccess(java.lang.String region, ICompositeCacheAttributes icca) throws CacheException
region
- icca
-
CacheException
public java.lang.Object getFromGroup(java.lang.Object name, java.lang.String group)
getFromGroup
in interface IGroupCacheAccess
name
- The key name.group
- The group name.
public void putInGroup(java.lang.Object name, java.lang.String groupName, java.lang.Object value) throws CacheException
putInGroup
in interface IGroupCacheAccess
name
- The key name.groupName
- The group name.value
- The object to cache
CacheException
public void putInGroup(java.lang.Object name, java.lang.String groupName, java.lang.Object value, IElementAttributes attr) throws CacheException
putInGroup
in interface IGroupCacheAccess
name
- The key name.groupName
- The group name.value
- The object to cacheattr
- The objects attributes.
CacheException
public void remove(java.lang.Object name, java.lang.String group)
IGroupCacheAccess
remove
in interface IGroupCacheAccess
name
- group
- public java.util.Set getGroupKeys(java.lang.String group)
getGroupKeys
in interface IGroupCacheAccess
group
-
public void invalidateGroup(java.lang.String group)
invalidateGroup
in interface IGroupCacheAccess
group
- The name of the group to invalidate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |