com.atlassian.confluence.cache
Interface ManagedLockingCache<K,V>

All Superinterfaces:
com.atlassian.cache.Cache<K,V>, com.atlassian.cache.ManagedCache
All Known Subinterfaces:
ConfigurableManagedLockingCache<K,V>
All Known Implementing Classes:
AbstractHazelcastCache, ConfluenceHazelcastCache, ConfluenceHybridCache, ConfluenceMonitoringLockingCache

public interface ManagedLockingCache<K,V>
extends com.atlassian.cache.ManagedCache, com.atlassian.cache.Cache<K,V>

Cache which allows normal put/get cache operation ( Cache ) as well as locking items and and managing base cache properties ( ManagedCache )

Since:
5.5.1

Method Summary
 void lock(K key, org.joda.time.Duration leaseTime)
           
 void unlock(K key)
           
 
Methods inherited from interface com.atlassian.cache.ManagedCache
clear, currentExpireAfterAccessMillis, currentExpireAfterWriteMillis, currentMaxEntries, getName, isFlushable, isLocal, isReplicateAsynchronously, isReplicateViaCopy, updateExpireAfterAccess, updateExpireAfterWrite, updateMaxEntries
 
Methods inherited from interface com.atlassian.cache.Cache
containsKey, get, getKeys, getName, put, putIfAbsent, remove, remove, removeAll, replace
 

Method Detail

lock

void lock(K key,
          org.joda.time.Duration leaseTime)

unlock

void unlock(K key)


Copyright © 2003-2014 Atlassian. All Rights Reserved.