Class ManagedHazelcastHibernateRegionCache
java.lang.Object
com.atlassian.confluence.impl.cache.hibernate.ManagedHazelcastHibernateRegionCache
- All Implemented Interfaces:
com.atlassian.cache.ManagedCache
public final class ManagedHazelcastHibernateRegionCache
extends Object
implements com.atlassian.cache.ManagedCache
A
ManagedCache implementation backed by a Hibernate Region. The statistics are
provided by a CacheRegionStatistics, and the cache is flushed via a NaturalIdDataAccess.- Since:
- 8.4
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()@Nullable Long@Nullable Integer@NonNull 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
getCacheCollector
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfacecom.atlassian.cache.ManagedCache
-
getName
- Specified by:
getNamein interfacecom.atlassian.cache.ManagedCache
-
getStatistics
- Specified by:
getStatisticsin interfacecom.atlassian.cache.ManagedCache
-
isFlushable
public boolean isFlushable()- Specified by:
isFlushablein interfacecom.atlassian.cache.ManagedCache
-
currentMaxEntries
- Specified by:
currentMaxEntriesin interfacecom.atlassian.cache.ManagedCache
-
updateMaxEntries
public boolean updateMaxEntries(int newValue) - Specified by:
updateMaxEntriesin interfacecom.atlassian.cache.ManagedCache
-
currentExpireAfterAccessMillis
- Specified by:
currentExpireAfterAccessMillisin interfacecom.atlassian.cache.ManagedCache
-
updateExpireAfterAccess
- Specified by:
updateExpireAfterAccessin interfacecom.atlassian.cache.ManagedCache
-
currentExpireAfterWriteMillis
- Specified by:
currentExpireAfterWriteMillisin interfacecom.atlassian.cache.ManagedCache
-
updateExpireAfterWrite
- Specified by:
updateExpireAfterWritein 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
-
isReplicateViaCopy
public boolean isReplicateViaCopy()- Specified by:
isReplicateViaCopyin 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
-