com.atlassian.cache.impl
Interface CachedReferenceListenerSupport<V>
- All Known Implementing Classes:
- DefaultCachedReferenceListenerSupport, LazyCachedReferenceListenerSupport, ValueCachedReferenceListenerSupport
public interface CachedReferenceListenerSupport<V>
This interface is designed to support CachedReference implementations in working with CachedReferenceListeners.
The main usage pattern for which this is designed is to use delegation for add/remove (therefore the listeners are
managed by the this interface) and then use notify* methods to create and deliver the actual events.
EMPTY
static final CachedReferenceListenerSupport EMPTY
add
void add(CachedReferenceListener<V> listener,
boolean includeValues)
remove
void remove(CachedReferenceListener<V> listener)
notifyEvict
void notifyEvict(V oldValue)
notifySet
void notifySet(V value)
notifyReset
void notifyReset(V oldValue)
Copyright © 2015 Atlassian. All rights reserved.