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, setDefaultElementAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, destroy, freeMemoryElements, get, getCacheAttributes, getCacheElement, getCacheElements, getElementAttributes, getElementAttributes, getMatching, getMatchingCacheElements, put, put, putSafe, remove, remove, resetElementAttributes, resetElementAttributes, setCacheAttributes
public GroupCacheAccess(CompositeCache cacheControl)
cacheControl
- 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 cacheCacheException
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 invalidateCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.