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
AManagedCache
implementation backed by a HibernateRegion
. The statistics are provided by aCacheRegionStatistics
, and the cache is flushed via aNaturalIdDataAccess
.- Since:
- 8.4
- See Also:
HibernateManagedRegionCacheFactory
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Long
currentExpireAfterAccessMillis()
Long
currentExpireAfterWriteMillis()
Integer
currentMaxEntries()
String
getName()
SortedMap<com.atlassian.cache.CacheStatisticsKey,Supplier<Long>>
getStatistics()
boolean
isFlushable()
boolean
isLocal()
boolean
isReplicateAsynchronously()
boolean
isReplicateViaCopy()
boolean
isStatisticsEnabled()
void
setStatistics(boolean enabled)
boolean
updateExpireAfterAccess(long expireAfter, TimeUnit timeUnit)
boolean
updateExpireAfterWrite(long expireAfter, TimeUnit timeUnit)
boolean
updateMaxEntries(int newValue)
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfacecom.atlassian.cache.ManagedCache
-
getName
@Nonnull public String getName()
- Specified by:
getName
in interfacecom.atlassian.cache.ManagedCache
-
getStatistics
@Nonnull public SortedMap<com.atlassian.cache.CacheStatisticsKey,Supplier<Long>> getStatistics()
- Specified by:
getStatistics
in interfacecom.atlassian.cache.ManagedCache
-
isFlushable
public boolean isFlushable()
- Specified by:
isFlushable
in interfacecom.atlassian.cache.ManagedCache
-
currentMaxEntries
@Nullable public Integer currentMaxEntries()
- Specified by:
currentMaxEntries
in interfacecom.atlassian.cache.ManagedCache
-
updateMaxEntries
public boolean updateMaxEntries(int newValue)
- Specified by:
updateMaxEntries
in interfacecom.atlassian.cache.ManagedCache
-
currentExpireAfterAccessMillis
public Long currentExpireAfterAccessMillis()
- Specified by:
currentExpireAfterAccessMillis
in interfacecom.atlassian.cache.ManagedCache
-
updateExpireAfterAccess
public boolean updateExpireAfterAccess(long expireAfter, TimeUnit timeUnit)
- Specified by:
updateExpireAfterAccess
in interfacecom.atlassian.cache.ManagedCache
-
currentExpireAfterWriteMillis
@Nullable public Long currentExpireAfterWriteMillis()
- Specified by:
currentExpireAfterWriteMillis
in interfacecom.atlassian.cache.ManagedCache
-
updateExpireAfterWrite
public boolean updateExpireAfterWrite(long expireAfter, TimeUnit timeUnit)
- 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
-
-