Package com.atlassian.jira.cache.stats
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 Summary
ConstructorDescriptionCachedReferenceWithStats
(com.atlassian.cache.CachedReference<V> delegate, String name, CacheStats stats) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(com.atlassian.cache.CachedReferenceListener<V> cachedReferenceListener, boolean b) get()
boolean
void
removeListener
(com.atlassian.cache.CachedReferenceListener<V> cachedReferenceListener) void
reset()
-
Constructor Details
-
CachedReferenceWithStats
public CachedReferenceWithStats(com.atlassian.cache.CachedReference<V> delegate, String name, CacheStats stats)
-
-
Method Details
-
get
- Specified by:
get
in interfacecom.atlassian.cache.CachedReference<V>
-
reset
public void reset()- Specified by:
reset
in interfacecom.atlassian.cache.CachedReference<V>
-
isPresent
public boolean isPresent()- Specified by:
isPresent
in interfacecom.atlassian.cache.CachedReference<V>
-
getIfPresent
- Specified by:
getIfPresent
in interfacecom.atlassian.cache.CachedReference<V>
-
addListener
public void addListener(@Nonnull com.atlassian.cache.CachedReferenceListener<V> cachedReferenceListener, boolean b) - Specified by:
addListener
in interfacecom.atlassian.cache.CachedReference<V>
-
removeListener
public void removeListener(@Nonnull com.atlassian.cache.CachedReferenceListener<V> cachedReferenceListener) - Specified by:
removeListener
in interfacecom.atlassian.cache.CachedReference<V>
-