K - the type of keys maintained by this cacheV - the type of cached valuespublic abstract class CacheEntryEvent<K,V> extends EventObject
source| Constructor and Description |
|---|
CacheEntryEvent(Cache source)
Constructs a cache entry event from a given cache as source
|
| Modifier and Type | Method and Description |
|---|---|
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
|
toStringpublic CacheEntryEvent(Cache source)
source - the cache that originated the eventpublic final Cache getSource()
getSource in class EventObjectpublic abstract K getKey()
public abstract V getValue()
public abstract V getOldValue() throws UnsupportedOperationException
UnsupportedOperationException - if the old value is not availablepublic abstract boolean isOldValueAvailable()
Copyright © 2013. All Rights Reserved.