|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.oscache.base.events.CacheEvent
public abstract class CacheEvent
The root event class for all cache events. Each subclasses of this class classifies a particular type of cache event.
Field Summary | |
---|---|
protected String |
origin
An optional tag that can be attached to the event to specify the event's origin. |
Constructor Summary | |
---|---|
CacheEvent()
No-argument constructor so subtypes can easily implement Serializable |
|
CacheEvent(String origin)
Creates a cache event object that came from the specified origin. |
Method Summary | |
---|---|
String |
getOrigin()
Retrieves the origin of this event, if one was specified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String origin
Constructor Detail |
---|
public CacheEvent()
Serializable
public CacheEvent(String origin)
origin
- A string that indicates where this event was fired from.
This value is optional; null
can be passed in if an
origin is not required.Method Detail |
---|
public String getOrigin()
|
OSCache Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |