|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
javax.cache.event.CacheEntryEvent<K,V>
K
- the type of keys maintained by this cacheV
- the type of cached valuespublic abstract class CacheEntryEvent<K,V>
A Cache event base class
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
CacheEntryEvent(Cache source)
Constructs a cache entry event from a given cache as source |
Method Summary | |
---|---|
abstract K |
getKey()
Returns the key of the cache entry with the event |
abstract V |
getOldValue()
Returns the value of the cache entry with the event |
Cache |
getSource()
|
abstract V |
getValue()
Returns the value of the cache entry with the event |
abstract boolean |
isOldValueAvailable()
Whether the old value is available |
Methods inherited from class java.util.EventObject |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CacheEntryEvent(Cache source)
source
- the cache that originated the eventMethod Detail |
---|
public final Cache getSource()
getSource
in class EventObject
public abstract K getKey()
public abstract V getValue()
public abstract V getOldValue() throws UnsupportedOperationException
UnsupportedOperationException
- if the old value is not availablepublic abstract boolean isOldValueAvailable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |