public interface CachedReferenceListenerSupport<V>
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.
| Modifier and Type | Field and Description |
|---|---|
static CachedReferenceListenerSupport |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
void |
add(CachedReferenceListener<V> listener,
boolean includeValues) |
void |
notifyEvict(V oldValue) |
void |
notifyReset(V oldValue) |
void |
notifySet(V value) |
void |
remove(CachedReferenceListener<V> listener) |
static final CachedReferenceListenerSupport EMPTY
void add(CachedReferenceListener<V> listener, boolean includeValues)
void remove(CachedReferenceListener<V> listener)
void notifyEvict(V oldValue)
void notifySet(V value)
void notifyReset(V oldValue)
Copyright © 2018 Atlassian. All rights reserved.