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()
Returns the key of the cache entry with the event
|
V |
getOldValue() |
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 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 availableCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.