com.opensymphony.oscache.base.events
Class CacheEntryEvent
java.lang.Object
com.opensymphony.oscache.base.events.CacheEvent
com.opensymphony.oscache.base.events.CacheEntryEvent
public final class CacheEntryEvent - extends CacheEvent
CacheEntryEvent is the object created when an event occurs on a
cache entry (Add, update, remove, flush). It contains the entry itself and
its map.
- Version:
- $Revision: 254 $
- Author:
- Francois Beauregard
| Fields inherited from class com.opensymphony.oscache.base.events.CacheEvent |
origin |
CacheEntryEvent
public CacheEntryEvent(Cache map,
CacheEntry entry)
- Constructs a cache entry event object with no specified origin
- Parameters:
map - The cache map of the cache entryentry - The cache entry that the event applies to
CacheEntryEvent
public CacheEntryEvent(Cache map,
CacheEntry entry,
String origin)
- Constructs a cache entry event object
- Parameters:
map - The cache map of the cache entryentry - The cache entry that the event applies toorigin - The origin of this event
getEntry
public CacheEntry getEntry()
- Retrieve the cache entry that the event applies to.
getKey
public String getKey()
- Retrieve the cache entry key
getMap
public Cache getMap()
- Retrieve the cache map where the entry resides.
toString
public String toString()
- Overrides:
toString in class Object
|