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 Details

    • clear

      public void clear()
      Specified by:
      clear in interface com.atlassian.cache.ManagedCache
    • getName

      public @NonNull String getName()
      Specified by:
      getName in interface com.atlassian.cache.ManagedCache
    • getStatistics

      public @NonNull SortedMap<com.atlassian.cache.CacheStatisticsKey,Supplier<Long>> getStatistics()
      Specified by:
      getStatistics in interface com.atlassian.cache.ManagedCache
    • isFlushable

      public boolean isFlushable()
      Specified by:
      isFlushable in interface com.atlassian.cache.ManagedCache
    • currentMaxEntries

      public @Nullable Integer currentMaxEntries()
      Specified by:
      currentMaxEntries in interface com.atlassian.cache.ManagedCache
    • updateMaxEntries

      public boolean updateMaxEntries(int newValue)
      Specified by:
      updateMaxEntries in interface com.atlassian.cache.ManagedCache
    • currentExpireAfterAccessMillis

      public Long currentExpireAfterAccessMillis()
      Specified by:
      currentExpireAfterAccessMillis in interface com.atlassian.cache.ManagedCache
    • updateExpireAfterAccess

      public boolean updateExpireAfterAccess(long expireAfter, TimeUnit timeUnit)
      Specified by:
      updateExpireAfterAccess in interface com.atlassian.cache.ManagedCache
    • currentExpireAfterWriteMillis

      public @Nullable Long currentExpireAfterWriteMillis()
      Specified by:
      currentExpireAfterWriteMillis in interface com.atlassian.cache.ManagedCache
    • updateExpireAfterWrite

      public boolean updateExpireAfterWrite(long expireAfter, TimeUnit timeUnit)
      Specified by:
      updateExpireAfterWrite in interface com.atlassian.cache.ManagedCache
    • isLocal

      public boolean isLocal()
      Specified by:
      isLocal in interface com.atlassian.cache.ManagedCache
    • isReplicateAsynchronously

      public boolean isReplicateAsynchronously()
      Specified by:
      isReplicateAsynchronously in interface com.atlassian.cache.ManagedCache
    • isReplicateViaCopy

      public boolean isReplicateViaCopy()
      Specified by:
      isReplicateViaCopy in interface com.atlassian.cache.ManagedCache
    • isStatisticsEnabled

      public boolean isStatisticsEnabled()
      Specified by:
      isStatisticsEnabled in interface com.atlassian.cache.ManagedCache
    • setStatistics

      public void setStatistics(boolean enabled)
      Specified by:
      setStatistics in interface com.atlassian.cache.ManagedCache