|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.cache.BaseStorageListener org.apache.commons.cache.GroupMapImpl
public class GroupMapImpl
tk.
Field Summary | |
---|---|
protected Cache |
_cache
The Cache I am associated with. |
protected HashMap |
_groupToKeys
A map from groups to a set of associated keys. |
protected HashMap |
_keyToGroup
A map from keys to their groups. |
Constructor Summary | |
---|---|
GroupMapImpl()
|
Method Summary | |
---|---|
protected void |
clear()
|
void |
cleared()
|
void |
cleared(Serializable key)
|
Serializable[] |
getKeysForGroup(Serializable group)
Returns an array of key values associated with the given group. |
static void |
main(String[] args)
|
void |
setCache(Cache c)
Sets my cache. |
void |
stored(Serializable key,
Serializable val,
Long expiresAt,
Long cost,
Serializable group)
|
void |
unsetCache()
Unsets my cache. |
Methods inherited from class org.apache.commons.cache.BaseStorageListener |
---|
notStored, storeRequested |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.cache.StorageListener |
---|
notStored, storeRequested |
Field Detail |
---|
protected Cache _cache
Cache
I am associated with.
protected HashMap _groupToKeys
protected HashMap _keyToGroup
Constructor Detail |
---|
public GroupMapImpl()
Method Detail |
---|
public Serializable[] getKeysForGroup(Serializable group)
getKeysForGroup
in interface GroupMap
public void setCache(Cache c)
setCache
in interface GroupMap
public void unsetCache()
unsetCache
in interface GroupMap
public void stored(Serializable key, Serializable val, Long expiresAt, Long cost, Serializable group)
stored
in interface StorageListener
stored
in class BaseStorageListener
public void cleared(Serializable key)
cleared
in interface StorageListener
cleared
in class BaseStorageListener
public void cleared()
cleared
in interface StorageListener
cleared
in class BaseStorageListener
protected void clear()
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |