|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.access.CacheAccess<K,V>
org.apache.jcs.access.GroupCacheAccess<K,V>
public class GroupCacheAccess<K extends Serializable,V extends Serializable>
Access for groups.
| Field Summary |
|---|
| Fields inherited from class org.apache.jcs.access.CacheAccess |
|---|
cacheControl |
| Constructor Summary | |
|---|---|
GroupCacheAccess(CompositeCache<K,V> cacheControl)
Constructor for the GroupCacheAccess object |
|
| Method Summary | ||
|---|---|---|
V |
getFromGroup(K name,
String group)
Gets an item out of the cache that is in a specified group. |
|
static
|
getGroupAccess(String region)
Gets the groupAccess attribute of the GroupCacheAccess class. |
|
static
|
getGroupAccess(String region,
ICompositeCacheAttributes icca)
Gets the groupAccess attribute of the GroupCacheAccess class. |
|
Set<K> |
getGroupKeys(String group)
Gets the set of keys of objects currently in the group. |
|
Set<String> |
getGroupNames()
Gets the set of group names in the cache |
|
void |
invalidateGroup(String group)
Invalidates a group: remove all the group members |
|
void |
putInGroup(K name,
String groupName,
V value)
Allows the user to put an object into a group within a particular cache region. |
|
void |
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 |
remove(K name,
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, freeMemoryElements, get, getAccess, getAccess, getCacheAttributes, getCacheElement, getCacheElements, getCacheManager, 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 |
| Constructor Detail |
|---|
public GroupCacheAccess(CompositeCache<K,V> cacheControl)
cacheControl - | Method Detail |
|---|
public static <K extends Serializable,V extends Serializable> GroupCacheAccess<K,V> getGroupAccess(String region)
throws CacheException
region -
CacheException
public static <K extends Serializable,V extends Serializable> GroupCacheAccess<K,V> getGroupAccess(String region,
ICompositeCacheAttributes icca)
throws CacheException
region - icca -
CacheException
public V getFromGroup(K name,
String group)
getFromGroup in interface IGroupCacheAccess<K extends Serializable,V extends Serializable>name - The key name.group - The group name.
public void putInGroup(K name,
String groupName,
V value)
throws CacheException
putInGroup in interface IGroupCacheAccess<K extends Serializable,V extends Serializable>name - The key name.groupName - The group name.value - The object to cache
CacheException
public void putInGroup(K name,
String groupName,
V value,
IElementAttributes attr)
throws CacheException
putInGroup in interface IGroupCacheAccess<K extends Serializable,V extends Serializable>name - The key name.groupName - The group name.value - The object to cacheattr - The objects attributes.
CacheException
public void remove(K name,
String group)
IGroupCacheAccess
remove in interface IGroupCacheAccess<K extends Serializable,V extends Serializable>name - group - public Set<K> getGroupKeys(String group)
getGroupKeys in interface IGroupCacheAccess<K extends Serializable,V extends Serializable>group -
public Set<String> getGroupNames()
public void invalidateGroup(String group)
invalidateGroup in interface IGroupCacheAccess<K extends Serializable,V extends Serializable>group - The name of the group to invalidate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||