public class HazelcastCachedReference<V> extends ManagedCacheSupport implements CachedReference<V>
CachedReference implementation to satisfy the requirements of CacheFactory.cacheManager| Modifier and Type | Method and Description |
|---|---|
void |
addListener(CachedReferenceListener<V> listener,
boolean includeValues)
Adds a
CachedReferenceListener |
void |
clear()
Clear the cache.
|
boolean |
equals(Object o) |
V |
get()
Get a value from the cache.
|
protected String |
getHazelcastMapName() |
int |
hashCode() |
void |
removeListener(CachedReferenceListener<V> listener)
Removes a
CachedReferenceListener |
void |
reset()
Resets (clears/invalidates) this reference.
|
currentExpireAfterAccessMillis, currentExpireAfterWriteMillis, currentMaxEntries, getName, getStatistics, isFlushable, isLocal, isReplicateAsynchronously, isReplicateViaCopy, isStatisticsEnabled, setStatistics, updateExpireAfterAccess, updateExpireAfterWrite, updateMaxEntriesclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetCacheCollectorpublic void clear()
ManagedCacheclear in interface ManagedCache@Nonnull public V get()
CachedReferenceget in interface CachedReference<V>public void reset()
CachedReferencereset in interface CachedReference<V>public void addListener(@Nonnull CachedReferenceListener<V> listener, boolean includeValues)
CachedReferenceCachedReferenceListeneraddListener in interface CachedReference<V>listener - the listenerincludeValues - if the events sent to this listener will include old/new value. This can be used in cases
when the cost of finding these values is big (network sync) but the listener is not interested in the concrete
values for events its getting. The support for this parameter is optional and implementation dependentpublic void removeListener(@Nonnull CachedReferenceListener<V> listener)
CachedReferenceCachedReferenceListenerremoveListener in interface CachedReference<V>listener - the listener@Nonnull protected String getHazelcastMapName()
getHazelcastMapName in class ManagedCacheSupportCopyright © 2018 Atlassian. All rights reserved.