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, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getInternalMetadata, setCreated, setInternalMetadata, setLastUsed
comparingByKey, comparingByKey, comparingByValue, comparingByValue
public 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)
CacheEntry
Copyright © 2021 JBoss by Red Hat. All rights reserved.