public interface ObjectCache<K,V> extends Cache<K,V>
Cache.Entry<K,V>, Cache.EntryProcessor<K,V>, Cache.MutableEntry<K,V>
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndRemove(K key,
long version)
Removes the entry from the cache if the current entry's version
matches.
|
boolean |
compareVersionAndPut(K key,
long version,
java.lang.Object value)
Updates the cache if the old value hash matches the current value.
|
ExtCacheEntry<K,V> |
getExtCacheEntry(K key)
Returns the extended entry
|
ExtCacheEntry<K,V> |
getStatCacheEntry(K key) |
boolean |
isClosed()
Returns true if the cache is closed
|
containsKey, get, getAll, getAndPut, getAndRemove, getAndReplace, getCacheManager, getConfiguration, getMBean, getName, getStatistics, invokeEntryProcessor, iterator, load, loadAll, put, putAll, putIfAbsent, registerCacheEntryListener, remove, remove, removeAll, removeAll, replace, replace, unregisterCacheEntryListener, unwrap
getStatus, start, stop
ExtCacheEntry<K,V> getExtCacheEntry(K key)
boolean compareVersionAndPut(K key, long version, java.lang.Object value)
key
- the key to compareversion
- the version of the old value returned by getEntryvalue
- the new valueboolean compareAndRemove(K key, long version)
boolean isClosed()
ExtCacheEntry<K,V> getStatCacheEntry(K key)