Interface ConfluenceCachedReference<V>

All Superinterfaces:
com.atlassian.cache.CachedReference<V>, com.atlassian.cache.ManagedCache

@Internal public interface ConfluenceCachedReference<V> extends com.atlassian.cache.CachedReference<V>, com.atlassian.cache.ManagedCache
Base cache interface for all caches in confluence. It combines the Cache, ManagedCache and ConfiguarableCache interfaces in a single place, allowing confluence internal code to more easily work with cache objects.

One consequence of this is that Confluence code should not have Classes implementing Cache directly, but rather should implement this interface.

Whenever our management and service layers return these objects, they should return either Cache, ManagedCache, or ConfigurableCache, and never this interface directly.

Since:
10.1
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
     

    Methods inherited from interface com.atlassian.cache.CachedReference

    addListener, get, getIfPresent, removeListener, reset

    Methods inherited from interface com.atlassian.cache.ManagedCache

    clear, currentExpireAfterAccessMillis, currentExpireAfterWriteMillis, currentMaxEntries, getCacheCollector, getName, getStatistics, isFlushable, isLocal, isReplicateAsynchronously, isReplicateViaCopy, isStatisticsEnabled, setStatistics, updateExpireAfterAccess, updateExpireAfterWrite, updateMaxEntries
  • Method Details

    • isPresent

      default boolean isPresent()
      Specified by:
      isPresent in interface com.atlassian.cache.CachedReference<V>