|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.oscache.base.events.CacheEvent
com.opensymphony.oscache.base.events.CacheGroupEvent
public final class CacheGroupEvent
CacheGroupEvent is an event that occurs at the cache group level (Add, update, remove, flush). It contains the group name and the originating cache object.
Field Summary | |
---|---|
private String |
group
The group that the event applies to. |
private Cache |
map
The cache where the entry resides. |
Fields inherited from class com.opensymphony.oscache.base.events.CacheEvent |
---|
origin |
Constructor Summary | |
---|---|
CacheGroupEvent(Cache map,
String group)
Constructs a cache group event with no origin |
|
CacheGroupEvent(Cache map,
String group,
String origin)
Constructs a cache group event |
Method Summary | |
---|---|
String |
getGroup()
Retrieve the cache group that the event applies to. |
Cache |
getMap()
Retrieve the cache map where the group resides. |
String |
toString()
|
Methods inherited from class com.opensymphony.oscache.base.events.CacheEvent |
---|
getOrigin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Cache map
private String group
Constructor Detail |
---|
public CacheGroupEvent(Cache map, String group)
map
- The cache map of the cache entrygroup
- The cache group that the event applies to.public CacheGroupEvent(Cache map, String group, String origin)
map
- The cache map of the cache entrygroup
- The cache group that the event applies to.origin
- An optional tag that can be attached to the event to
specify the event's origin. This is useful to prevent events from being
fired recursively in some situations, such as when an event handler
causes another event to be fired.Method Detail |
---|
public String getGroup()
public Cache getMap()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |