|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.cache.CacheOperations
public class CacheOperations
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 |
filter(java.util.Collection keys)
Filters the supplied list of keys by adding those from any 'put' operations and removing those from any 'remove' operations. |
java.lang.Object |
get(java.lang.Object key)
|
boolean |
isRemoved(java.lang.Object key)
|
void |
perform(com.atlassian.cache.Cache cache)
Perform all recorded operations on the provided cache |
void |
put(java.lang.Object key,
java.lang.Object value)
|
int |
putCount()
|
void |
remove(java.lang.Object key)
|
void |
removeAll(java.util.Collection 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 java.lang.Object get(java.lang.Object key)
public boolean isRemoved(java.lang.Object key)
public void put(java.lang.Object key, java.lang.Object value)
public void remove(java.lang.Object key)
public void removeAll(java.util.Collection keys)
public void clear()
public java.util.Set filter(java.util.Collection keys)
public void perform(com.atlassian.cache.Cache 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 |