Class CachedReferenceWithStats<V>

java.lang.Object
com.atlassian.jira.cache.stats.CachedReferenceWithStats<V>
All Implemented Interfaces:
com.atlassian.cache.CachedReference<V>

public class CachedReferenceWithStats<V> extends Object implements com.atlassian.cache.CachedReference<V>
  • Constructor Details

    • CachedReferenceWithStats

      public CachedReferenceWithStats(com.atlassian.cache.CachedReference<V> delegate, String name, CacheStats stats)
  • Method Details

    • get

      @Nonnull public V get()
      Specified by:
      get in interface com.atlassian.cache.CachedReference<V>
    • reset

      public void reset()
      Specified by:
      reset in interface com.atlassian.cache.CachedReference<V>
    • isPresent

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

      @Nonnull public Optional<V> getIfPresent()
      Specified by:
      getIfPresent in interface com.atlassian.cache.CachedReference<V>
    • addListener

      public void addListener(@Nonnull com.atlassian.cache.CachedReferenceListener<V> cachedReferenceListener, boolean b)
      Specified by:
      addListener in interface com.atlassian.cache.CachedReference<V>
    • removeListener

      public void removeListener(@Nonnull com.atlassian.cache.CachedReferenceListener<V> cachedReferenceListener)
      Specified by:
      removeListener in interface com.atlassian.cache.CachedReference<V>