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 TypeMethodDescriptionvoid
clear()
@Nullable Long
@Nullable Integer
@NonNull String
getName()
boolean
boolean
isLocal()
boolean
boolean
boolean
void
setStatistics
(boolean enabled) boolean
updateExpireAfterAccess
(long expireAfter, TimeUnit timeUnit) boolean
updateExpireAfterWrite
(long expireAfter, TimeUnit timeUnit) boolean
updateMaxEntries
(int newValue) 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
getCacheCollector
-
Method Details
-
clear
public void clear()- Specified by:
clear
in interfacecom.atlassian.cache.ManagedCache
-
getName
- Specified by:
getName
in interfacecom.atlassian.cache.ManagedCache
-
getStatistics
- Specified by:
getStatistics
in interfacecom.atlassian.cache.ManagedCache
-
isFlushable
public boolean isFlushable()- Specified by:
isFlushable
in interfacecom.atlassian.cache.ManagedCache
-
currentMaxEntries
- Specified by:
currentMaxEntries
in interfacecom.atlassian.cache.ManagedCache
-
updateMaxEntries
public boolean updateMaxEntries(int newValue) - Specified by:
updateMaxEntries
in interfacecom.atlassian.cache.ManagedCache
-
currentExpireAfterAccessMillis
- Specified by:
currentExpireAfterAccessMillis
in interfacecom.atlassian.cache.ManagedCache
-
updateExpireAfterAccess
- Specified by:
updateExpireAfterAccess
in interfacecom.atlassian.cache.ManagedCache
-
currentExpireAfterWriteMillis
- Specified by:
currentExpireAfterWriteMillis
in interfacecom.atlassian.cache.ManagedCache
-
updateExpireAfterWrite
- Specified by:
updateExpireAfterWrite
in interfacecom.atlassian.cache.ManagedCache
-
isLocal
public boolean isLocal()- Specified by:
isLocal
in interfacecom.atlassian.cache.ManagedCache
-
isReplicateAsynchronously
public boolean isReplicateAsynchronously()- Specified by:
isReplicateAsynchronously
in interfacecom.atlassian.cache.ManagedCache
-
isReplicateViaCopy
public boolean isReplicateViaCopy()- Specified by:
isReplicateViaCopy
in interfacecom.atlassian.cache.ManagedCache
-
isStatisticsEnabled
public boolean isStatisticsEnabled()- Specified by:
isStatisticsEnabled
in interfacecom.atlassian.cache.ManagedCache
-
setStatistics
public void setStatistics(boolean enabled) - Specified by:
setStatistics
in interfacecom.atlassian.cache.ManagedCache
-