@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.ManagedCachepublic boolean isFlushable()
isFlushable in interface com.atlassian.cache.ManagedCache@Nullable public Integer currentMaxEntries()
currentMaxEntries in interface com.atlassian.cache.ManagedCachepublic boolean updateMaxEntries(int newValue)
updateMaxEntries in interface com.atlassian.cache.ManagedCachepublic Long currentExpireAfterAccessMillis()
currentExpireAfterAccessMillis in interface com.atlassian.cache.ManagedCachepublic boolean updateExpireAfterAccess(long expireAfter,
TimeUnit timeUnit)
updateExpireAfterAccess in interface com.atlassian.cache.ManagedCache@Nullable public Long currentExpireAfterWriteMillis()
currentExpireAfterWriteMillis in interface com.atlassian.cache.ManagedCachepublic boolean updateExpireAfterWrite(long expireAfter,
TimeUnit timeUnit)
updateExpireAfterWrite in interface com.atlassian.cache.ManagedCachepublic boolean isLocal()
isLocal in interface com.atlassian.cache.ManagedCachepublic boolean isReplicateAsynchronously()
isReplicateAsynchronously in interface com.atlassian.cache.ManagedCachepublic boolean isReplicateViaCopy()
isReplicateViaCopy in interface com.atlassian.cache.ManagedCachepublic boolean isStatisticsEnabled()
isStatisticsEnabled in interface com.atlassian.cache.ManagedCachepublic void setStatistics(boolean enabled)
setStatistics in interface com.atlassian.cache.ManagedCacheCopyright © 2003–2022 Atlassian. All rights reserved.