Package com.atlassian.cache.hazelcast
Class HazelcastCachedReference<V>
java.lang.Object
com.atlassian.cache.hazelcast.ManagedCacheSupport
com.atlassian.cache.hazelcast.HazelcastCachedReference<V>
- All Implemented Interfaces:
com.atlassian.cache.CachedReference<V>,com.atlassian.cache.ManagedCache
public class HazelcastCachedReference<V>
extends ManagedCacheSupport
implements com.atlassian.cache.CachedReference<V>
A
CachedReference implementation to satisfy the requirements of CacheFactory.- Since:
- 2.4.0
-
Field Summary
Fields inherited from class com.atlassian.cache.hazelcast.ManagedCacheSupport
cacheManager -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(com.atlassian.cache.CachedReferenceListener<V> listener, boolean includeValues) voidclear()booleanget()protected StringinthashCode()booleanvoidremoveListener(com.atlassian.cache.CachedReferenceListener<V> listener) voidreset()Methods inherited from class com.atlassian.cache.hazelcast.ManagedCacheSupport
currentExpireAfterAccessMillis, currentExpireAfterWriteMillis, currentMaxEntries, getName, getStatistics, isFlushable, isLocal, isReplicateAsynchronously, isReplicateViaCopy, isStatisticsEnabled, setStatistics, updateExpireAfterAccess, updateExpireAfterWrite, updateMaxEntriesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.cache.ManagedCache
getCacheCollector
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfacecom.atlassian.cache.ManagedCache
-
get
- Specified by:
getin interfacecom.atlassian.cache.CachedReference<V>
-
reset
public void reset()- Specified by:
resetin interfacecom.atlassian.cache.CachedReference<V>
-
isPresent
public boolean isPresent()- Specified by:
isPresentin interfacecom.atlassian.cache.CachedReference<V>
-
getIfPresent
- Specified by:
getIfPresentin interfacecom.atlassian.cache.CachedReference<V>
-
equals
-
hashCode
public int hashCode() -
addListener
public void addListener(@Nonnull com.atlassian.cache.CachedReferenceListener<V> listener, boolean includeValues) - Specified by:
addListenerin interfacecom.atlassian.cache.CachedReference<V>
-
removeListener
- Specified by:
removeListenerin interfacecom.atlassian.cache.CachedReference<V>
-
getHazelcastMapName
- Specified by:
getHazelcastMapNamein classManagedCacheSupport
-