public class GroupCacheAccess extends CacheAccess implements IGroupCacheAccess
cacheControl| Constructor and Description |
|---|
GroupCacheAccess(CompositeCache cacheControl)
Constructor for the GroupCacheAccess object
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, setDefaultElementAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, destroy, freeMemoryElements, get, getCacheAttributes, getCacheElement, getCacheElements, getElementAttributes, getElementAttributes, getMatching, getMatchingCacheElements, put, put, putSafe, remove, remove, resetElementAttributes, resetElementAttributes, setCacheAttributespublic GroupCacheAccess(CompositeCache cacheControl)
cacheControl - public static GroupCacheAccess getGroupAccess(java.lang.String region) throws CacheException
region - CacheExceptionpublic static GroupCacheAccess getGroupAccess(java.lang.String region, ICompositeCacheAttributes icca) throws CacheException
region - icca - CacheExceptionpublic java.lang.Object getFromGroup(java.lang.Object name,
java.lang.String group)
getFromGroup in interface IGroupCacheAccessname - 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 IGroupCacheAccessname - The key name.groupName - The group name.value - The object to cacheCacheExceptionpublic void putInGroup(java.lang.Object name,
java.lang.String groupName,
java.lang.Object value,
IElementAttributes attr)
throws CacheException
putInGroup in interface IGroupCacheAccessname - The key name.groupName - The group name.value - The object to cacheattr - The objects attributes.CacheExceptionpublic void remove(java.lang.Object name,
java.lang.String group)
IGroupCacheAccessremove in interface IGroupCacheAccessname - group - public java.util.Set getGroupKeys(java.lang.String group)
getGroupKeys in interface IGroupCacheAccessgroup - public void invalidateGroup(java.lang.String group)
invalidateGroup in interface IGroupCacheAccessgroup - The name of the group to invalidateCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.