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

All Superinterfaces:
com.atlassian.cache.Cache<K,V>, ConfigurableCache<K,V>, ConfluenceCache<K,V>, com.atlassian.cache.ManagedCache
All Known Subinterfaces:
ManagedLockingCache<K,V>
All Known Implementing Classes:
ConfluenceMonitoringLockingCache, HazelcastLockingCache

@Internal
public interface LockingCache<K,V>
extends ConfluenceCache<K,V>

Interface that extends atlassian-cache to have locking semantics. Note: In our codebase, this is only used for our old hibernate 2 cache

Since:
5.7

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, getStatistics, isFlushable, isLocal, isReplicateAsynchronously, isReplicateViaCopy, updateExpireAfterAccess, updateExpireAfterWrite, updateMaxEntries
 
Methods inherited from interface com.atlassian.confluence.cache.ConfigurableCache
setTimeToLive
 
Methods inherited from interface com.atlassian.cache.Cache
addListener, containsKey, get, get, getKeys, getName, put, putIfAbsent, remove, remove, removeAll, removeListener, replace
 

Method Detail

lock

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

unlock

void unlock(K key)


Copyright © 2003–2015 Atlassian. All rights reserved.