Package com.atlassian.cache.hazelcast
Class ManagedHybridCacheSupport
java.lang.Object
com.atlassian.cache.hazelcast.ManagedHybridCacheSupport
- All Implemented Interfaces:
com.atlassian.cache.ManagedCache
- Direct Known Subclasses:
HazelcastAsyncHybridCache,HazelcastAsyncHybridCachedReference,HazelcastHybridCache,HazelcastHybridCachedReference
public abstract class ManagedHybridCacheSupport
extends Object
implements com.atlassian.cache.ManagedCache
Common implementation of
ManagedCache methods for hybrid caches and cached references.- Since:
- 2.4.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.atlassian.cache.ManagedCachegetName()For hybrid caches, we can just get the cache stats from the underlying local cache.booleanisLocal()booleanbooleanvoidsetStatistics(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, isFlushable, isReplicateAsynchronously
-
Field Details
-
cacheManager
-
name
-
-
Constructor Details
-
ManagedHybridCacheSupport
-
-
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
-
getName
- Specified by:
getNamein interfacecom.atlassian.cache.ManagedCache
-
isLocal
public boolean isLocal()- Specified by:
isLocalin interfacecom.atlassian.cache.ManagedCache
-
isReplicateViaCopy
public boolean isReplicateViaCopy()- Specified by:
isReplicateViaCopyin 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
-
getLocalCache
protected abstract com.atlassian.cache.ManagedCache getLocalCache() -
getStatistics
For hybrid caches, we can just get the cache stats from the underlying local cache.- 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
-