com.atlassian.confluence.cache.hazelcast.monitoring
Class ConfluenceMonitoringLockingCache<K,V>

java.lang.Object
  extended by com.atlassian.confluence.cache.ConfluenceMonitoringCache<K,V>
      extended by com.atlassian.confluence.cache.hazelcast.monitoring.ConfluenceMonitoringLockingCache<K,V>
All Implemented Interfaces:
com.atlassian.cache.Cache<K,V>, com.atlassian.cache.ManagedCache, ConfigurableCache<K,V>, ConfluenceCache<K,V>, LockingCache<K,V>

@Internal
public class ConfluenceMonitoringLockingCache<K,V>
extends ConfluenceMonitoringCache<K,V>
implements LockingCache<K,V>

Wrapper for monitoring the performance of Hazelcast locking caches.


Constructor Summary
ConfluenceMonitoringLockingCache(LockingCache<K,V> cache, ConfluenceMonitoring confluenceMonitoring)
           
 
Method Summary
 void lock(K key, org.joda.time.Duration leaseTime)
           
 void unlock(K key)
           
 
Methods inherited from class com.atlassian.confluence.cache.ConfluenceMonitoringCache
addListener, clear, containsKey, createLockSplit, createReadSplit, createSplit, createUnlockSplit, createWriteSplit, currentExpireAfterAccessMillis, currentExpireAfterWriteMillis, currentMaxEntries, get, get, getKeys, 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

ConfluenceMonitoringLockingCache

public ConfluenceMonitoringLockingCache(LockingCache<K,V> cache,
                                        ConfluenceMonitoring confluenceMonitoring)
Method Detail

lock

public void lock(K key,
                 org.joda.time.Duration leaseTime)
Specified by:
lock in interface LockingCache<K,V>

unlock

public void unlock(K key)
Specified by:
unlock in interface LockingCache<K,V>


Copyright © 2003–2015 Atlassian. All rights reserved.