@Internal public final class ManagedHazelcastHibernateRegionCache extends Object implements com.atlassian.cache.ManagedCache
ManagedCache
implementation backed by a Hibernate Region
. The statistics are
provided by a SecondLevelCacheStatistics
, and the cache is flushed via a RegionAccessStrategy
.ManagedHazelcastHibernateRegionCacheFactory
Modifier and Type | Method and 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) |
public void clear()
clear
in interface com.atlassian.cache.ManagedCache
@Nonnull public String getName()
getName
in interface com.atlassian.cache.ManagedCache
@Nonnull public SortedMap<com.atlassian.cache.CacheStatisticsKey,Supplier<Long>> getStatistics()
getStatistics
in interface com.atlassian.cache.ManagedCache
public boolean isFlushable()
isFlushable
in interface com.atlassian.cache.ManagedCache
@Nullable public Integer currentMaxEntries()
currentMaxEntries
in interface com.atlassian.cache.ManagedCache
public boolean updateMaxEntries(int newValue)
updateMaxEntries
in interface com.atlassian.cache.ManagedCache
public Long currentExpireAfterAccessMillis()
currentExpireAfterAccessMillis
in interface com.atlassian.cache.ManagedCache
public boolean updateExpireAfterAccess(long expireAfter, TimeUnit timeUnit)
updateExpireAfterAccess
in interface com.atlassian.cache.ManagedCache
@Nullable public Long currentExpireAfterWriteMillis()
currentExpireAfterWriteMillis
in interface com.atlassian.cache.ManagedCache
public boolean updateExpireAfterWrite(long expireAfter, TimeUnit timeUnit)
updateExpireAfterWrite
in interface com.atlassian.cache.ManagedCache
public boolean isLocal()
isLocal
in interface com.atlassian.cache.ManagedCache
public boolean isReplicateAsynchronously()
isReplicateAsynchronously
in interface com.atlassian.cache.ManagedCache
public boolean isReplicateViaCopy()
isReplicateViaCopy
in interface com.atlassian.cache.ManagedCache
public boolean isStatisticsEnabled()
isStatisticsEnabled
in interface com.atlassian.cache.ManagedCache
public void setStatistics(boolean enabled)
setStatistics
in interface com.atlassian.cache.ManagedCache
Copyright © 2003–2021 Atlassian. All rights reserved.