|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.cache.CacheOperations<K,V>
@Internal 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 |
cache(K key,
V value)
|
void |
clear()
Clear all recorded cache cachedOperations |
Set<K> |
filter(Iterable<K> globalKeys)
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)
|
int |
operationCount()
|
void |
perform(com.atlassian.cache.Cache<K,V> cache)
Perform all recorded cachedOperations on the provided cache |
void |
put(K key,
V value)
|
int |
putCount()
|
void |
putIfAbsent(K key,
V value)
|
int |
putIfAbsentCount()
|
void |
remove(K key)
|
void |
removeAll(Collection<K> keys)
|
int |
removeCount()
|
int |
valueCount()
|
| 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 cache(K key,
V value)
public void put(K key,
V value)
public void putIfAbsent(K key,
V value)
public void remove(K key)
public void removeAll(Collection<K> keys)
public void clear()
public Set<K> filter(Iterable<K> globalKeys)
public void perform(com.atlassian.cache.Cache<K,V> cache)
cache - Cache to perform cachedOperations onpublic int operationCount()
public int putIfAbsentCount()
public int putCount()
public int removeCount()
public int valueCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||