|
||||||||||
| 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.CacheEntryEvent
public final class CacheEntryEvent
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.
| Field Summary | |
|---|---|
private CacheEntry |
entry
The entry 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 | |
|---|---|
CacheEntryEvent(Cache map,
CacheEntry entry)
Constructs a cache entry event object with no specified origin |
|
CacheEntryEvent(Cache map,
CacheEntry entry,
String origin)
Constructs a cache entry event object |
|
| Method Summary | |
|---|---|
CacheEntry |
getEntry()
Retrieve the cache entry that the event applies to. |
String |
getKey()
Retrieve the cache entry key |
Cache |
getMap()
Retrieve the cache map where the entry 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 CacheEntry entry
| Constructor Detail |
|---|
public CacheEntryEvent(Cache map,
CacheEntry entry)
map - The cache map of the cache entryentry - The cache entry that the event applies to
public CacheEntryEvent(Cache map,
CacheEntry entry,
String origin)
map - The cache map of the cache entryentry - The cache entry that the event applies toorigin - The origin of this event| Method Detail |
|---|
public CacheEntry getEntry()
public String getKey()
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 | |||||||||