Package com.atlassian.cache.hazelcast
Class ManagedCacheSupport
java.lang.Object
com.atlassian.cache.hazelcast.ManagedCacheSupport
- All Implemented Interfaces:
com.atlassian.cache.ManagedCache
- Direct Known Subclasses:
HazelcastCache,HazelcastCachedReference
@ParametersAreNonnullByDefault
public abstract class ManagedCacheSupport
extends Object
implements com.atlassian.cache.ManagedCache
Common implementation of
ManagedCache methods for caches and cached references that are
backed by IMaps.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringgetName()booleanbooleanisLocal()booleanbooleanbooleanvoidsetStatistics(boolean enabled) booleanupdateExpireAfterAccess(long expireAfter, TimeUnit timeUnit) booleanupdateExpireAfterWrite(long expireAfter, TimeUnit timeUnit) booleanupdateMaxEntries(int newValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.cache.ManagedCache
clear, getCacheCollector
-
Field Details
-
cacheManager
-
-
Constructor Details
-
ManagedCacheSupport
-
-
Method Details
-
currentExpireAfterAccessMillis
- Specified by:
currentExpireAfterAccessMillisin interfacecom.atlassian.cache.ManagedCache
-
currentExpireAfterWriteMillis
- Specified by:
currentExpireAfterWriteMillisin interfacecom.atlassian.cache.ManagedCache
-
currentMaxEntries
- Specified by:
currentMaxEntriesin interfacecom.atlassian.cache.ManagedCache
-
isReplicateViaCopy
public boolean isReplicateViaCopy()- Specified by:
isReplicateViaCopyin interfacecom.atlassian.cache.ManagedCache
-
getName
- Specified by:
getNamein interfacecom.atlassian.cache.ManagedCache
-
isFlushable
public boolean isFlushable()- Specified by:
isFlushablein interfacecom.atlassian.cache.ManagedCache
-
isLocal
public boolean isLocal()- Specified by:
isLocalin interfacecom.atlassian.cache.ManagedCache
-
isReplicateAsynchronously
public boolean isReplicateAsynchronously()- Specified by:
isReplicateAsynchronouslyin interfacecom.atlassian.cache.ManagedCache
-
updateExpireAfterAccess
- Specified by:
updateExpireAfterAccessin interfacecom.atlassian.cache.ManagedCache
-
updateExpireAfterWrite
- Specified by:
updateExpireAfterWritein interfacecom.atlassian.cache.ManagedCache
-
updateMaxEntries
public boolean updateMaxEntries(int newValue) - Specified by:
updateMaxEntriesin interfacecom.atlassian.cache.ManagedCache
-
getStatistics
- Specified by:
getStatisticsin interfacecom.atlassian.cache.ManagedCache
-
isStatisticsEnabled
public boolean isStatisticsEnabled()- Specified by:
isStatisticsEnabledin interfacecom.atlassian.cache.ManagedCache
-
setStatistics
public void setStatistics(boolean enabled) - Specified by:
setStatisticsin interfacecom.atlassian.cache.ManagedCache
-
getHazelcastMapName
-