public class

CacheOperations

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.cache.CacheOperations

Class Overview

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.

Summary

Public Constructors
CacheOperations()
Public Methods
void clear()
Clear all recorded cache operations
Set filter(Collection keys)
Filters the supplied list of keys by adding those from any 'put' operations and removing those from any 'remove' operations.
Object get(Object key)
boolean isRemoved(Object key)
void perform(Cache cache)
Perform all recorded operations on the provided cache
void put(Object key, Object value)
int putCount()
void remove(Object key)
void removeAll(Collection keys)
int removeCount()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CacheOperations ()

Public Methods

public void clear ()

Clear all recorded cache operations

public Set filter (Collection keys)

Filters the supplied list of keys by adding those from any 'put' operations and removing those from any 'remove' operations.

public Object get (Object key)

public boolean isRemoved (Object key)

public void perform (Cache cache)

Perform all recorded operations on the provided cache

Parameters
cache Cache to perform operations on

public void put (Object key, Object value)

public int putCount ()

Returns
  • The number of recorded put operations

public void remove (Object key)

public void removeAll (Collection keys)

public int removeCount ()

Returns
  • The number of recorded remove operations