|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.cache.DefaultConfluenceCache<K,V>
com.atlassian.confluence.cache.hazelcast.hibernate.HazelcastLockingCache<K,V>
@Internal public class HazelcastLockingCache<K,V>
A delegating cache that allows you to lock and unlock on keys. It delegates all other operations other than lock() and unlock() to the underlying cache.
Constructor Summary | |
---|---|
HazelcastLockingCache(HazelcastHelper hazelCastHelper,
com.atlassian.cache.Cache<K,V> delegate)
|
Method Summary | |
---|---|
void |
lock(K key,
org.joda.time.Duration leaseTime)
|
void |
unlock(K key)
|
Methods inherited from class com.atlassian.confluence.cache.DefaultConfluenceCache |
---|
addListener, clear, containsKey, currentExpireAfterAccessMillis, currentExpireAfterWriteMillis, currentMaxEntries, get, get, getDelegate, getKeys, getManagedDelegate, getName, getStatistics, isFlushable, isLocal, isReplicateAsynchronously, isReplicateViaCopy, put, putIfAbsent, remove, remove, removeAll, removeListener, replace, setTimeToLive, updateExpireAfterAccess, updateExpireAfterWrite, updateMaxEntries |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
Constructor Detail |
---|
public HazelcastLockingCache(HazelcastHelper hazelCastHelper, com.atlassian.cache.Cache<K,V> delegate)
Method Detail |
---|
public void lock(K key, org.joda.time.Duration leaseTime)
lock
in interface LockingCache<K,V>
public void unlock(K key)
unlock
in interface LockingCache<K,V>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |