K
- the type of keys maintained by this cacheV
- the type of cached valuespublic class RICacheEntryEvent<K,V>
extends javax.cache.event.CacheEntryEvent<K,V>
CacheEntryEvent
.source
Constructor and Description |
---|
RICacheEntryEvent(javax.cache.Cache<K,V> source,
K key,
V value,
javax.cache.event.EventType eventType)
Constructs a cache entry event from a given cache as source
(without an old value)
|
Modifier and Type | Method and Description |
---|---|
K |
getKey()
Returns the key of the cache entry with the event
|
V |
getOldValue()
Returns the value of the cache entry with the event
|
V |
getValue()
Returns the value of the cache entry with the event
|
boolean |
isOldValueAvailable()
Whether the old value is available
|
<T> T |
unwrap(Class<T> clazz) |
toString
public K getKey()
public V getValue()
public <T> T unwrap(Class<T> clazz)
public V getOldValue() throws UnsupportedOperationException
getOldValue
in class javax.cache.event.CacheEntryEvent<K,V>
UnsupportedOperationException
- if the old value is not availableCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.