|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.cache.CacheOperations<K,V>
public class CacheOperations<K,V>
A cache operation recorder. Offers the ability to record a series of cache modification operations and perform them on a target cache at a later time.
DeferredOperationsCache
Constructor Summary | |
---|---|
CacheOperations()
|
Method Summary | |
---|---|
void |
clear()
Clear all recorded cache operations |
java.util.Set<K> |
filter(java.util.Collection<K> keys)
Filters the supplied list of keys by adding those from any 'put' operations and removing those from any 'remove' operations. |
V |
get(K key)
|
boolean |
isRemoved(K key)
|
void |
perform(com.atlassian.cache.Cache<K,V> cache)
Perform all recorded operations on the provided cache |
void |
put(K key,
V value)
|
int |
putCount()
|
void |
remove(K key)
|
void |
removeAll(java.util.Collection<K> keys)
|
int |
removeCount()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheOperations()
Method Detail |
---|
public V get(K key)
public boolean isRemoved(K key)
public void put(K key, V value)
public void remove(K key)
public void removeAll(java.util.Collection<K> keys)
public void clear()
public java.util.Set<K> filter(java.util.Collection<K> keys)
public void perform(com.atlassian.cache.Cache<K,V> cache)
cache
- Cache to perform operations onpublic int putCount()
public int removeCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |