|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectCache<K,V>
Interface for a distributed cache.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.cache.Cache |
---|
Cache.Entry<K,V>, Cache.EntryProcessor<K,V>, Cache.MutableEntry<K,V> |
Method Summary | |
---|---|
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 |
Methods inherited from interface javax.cache.Cache |
---|
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 |
Methods inherited from interface javax.cache.CacheLifecycle |
---|
getStatus, start, stop |
Method Detail |
---|
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 value
boolean compareAndRemove(K key, long version)
boolean isClosed()
ExtCacheEntry<K,V> getStatCacheEntry(K key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |