com.atlassian.cache.impl
Class DefaultCachedReferenceListenerSupport<V>
java.lang.Object
com.atlassian.cache.impl.DefaultCachedReferenceListenerSupport<V>
- All Implemented Interfaces:
- CachedReferenceListenerSupport<V>
public class DefaultCachedReferenceListenerSupport<V>
- extends Object
- implements CachedReferenceListenerSupport<V>
A utility class which:
- Manages a set of
CachedReferenceListeners
- Provides a way to notify these listeners about different events
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCachedReferenceListenerSupport
public DefaultCachedReferenceListenerSupport()
add
public void add(CachedReferenceListener<V> listener,
boolean includeValues)
- Specified by:
add in interface CachedReferenceListenerSupport<V>
remove
public void remove(CachedReferenceListener<V> listener)
- Specified by:
remove in interface CachedReferenceListenerSupport<V>
notifyEvict
public void notifyEvict(V oldValue)
- Specified by:
notifyEvict in interface CachedReferenceListenerSupport<V>
notifySet
public void notifySet(V value)
- Specified by:
notifySet in interface CachedReferenceListenerSupport<V>
notifyReset
public void notifyReset(V oldValue)
- Specified by:
notifyReset in interface CachedReferenceListenerSupport<V>
Copyright © 2015 Atlassian. All rights reserved.