K - The key typeV - The value typepublic class EntryWrapper<K,V> extends ForwardingCacheEntry<K,V>
| Constructor and Description |
|---|
EntryWrapper(Cache<K,V> cache,
CacheEntry<K,V> entry)
Creates a new entry wrapper given the cache and entry.
|
| Modifier and Type | Method and Description |
|---|---|
protected CacheEntry<K,V> |
delegate() |
V |
setValue(V value)
Sets the value of the entry, returning the previous value
|
clone, commit, equals, getCreated, getKey, getLastUsed, getLifespan, getMaxIdle, getMetadata, getValue, hashCode, isChanged, isCreated, isEvicted, isNull, isRemoved, setChanged, setCreated, setEvicted, setMetadata, setRemoved, setSkipLookup, skipLookup, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetInternalMetadata, setCreated, setInternalMetadata, setLastUsedcomparingByKey, comparingByKey, comparingByValue, comparingByValuepublic EntryWrapper(Cache<K,V> cache, CacheEntry<K,V> entry)
cache - the cache to use on setValueentry - the actual entryprotected CacheEntry<K,V> delegate()
delegate in class ForwardingCacheEntry<K,V>public V setValue(V value)
CacheEntryCopyright © 2022 JBoss by Red Hat. All rights reserved.