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)
|
RICacheEntryEvent(javax.cache.Cache<K,V> source,
K key,
V value,
V oldValue,
javax.cache.event.EventType eventType)
Constructs a cache entry event from a given cache as source
(with an old value)
|
RICacheEntryEvent(javax.cache.Cache<K,V> source,
K key,
V value,
V oldValue,
javax.cache.event.EventType eventType,
boolean oldValueAvailable)
Constructs a cache entry event from a given cache as source
with an old value, explicitly specifying whether old value is available
|
| Modifier and Type | Method and Description |
|---|---|
K |
getKey() |
V |
getOldValue() |
V |
getValue() |
boolean |
isOldValueAvailable() |
<T> T |
unwrap(Class<T> clazz) |
toStringpublic RICacheEntryEvent(javax.cache.Cache<K,V> source, K key, V value, javax.cache.event.EventType eventType)
source - the cache that originated the eventkey - the keyvalue - the valuepublic RICacheEntryEvent(javax.cache.Cache<K,V> source, K key, V value, V oldValue, javax.cache.event.EventType eventType)
source - the cache that originated the eventkey - the keyvalue - the valueoldValue - the oldValuepublic RICacheEntryEvent(javax.cache.Cache<K,V> source, K key, V value, V oldValue, javax.cache.event.EventType eventType, boolean oldValueAvailable)
source - the cache that originated the eventkey - the keyvalue - the valueoldValue - the oldValueoldValueAvailable - indicates whether old value is availablepublic K getKey()
public V getValue()
public V getOldValue() throws UnsupportedOperationException
getOldValue in class javax.cache.event.CacheEntryEvent<K,V>UnsupportedOperationExceptionpublic <T> T unwrap(Class<T> clazz)
Copyright © 2019. All rights reserved.