public interface CacheEntryListenerSupport<K,V>
Cache implementations in working with CacheEntryListeners.
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 CacheEntryListenerSupport |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
void |
add(CacheEntryListener<K,V> listener,
boolean includeValues) |
void |
notifyAdd(K key,
V value) |
void |
notifyEvict(K key,
V oldValue) |
void |
notifyRemove(K key,
V oldValue) |
void |
notifyUpdate(K key,
V value,
V oldValue) |
void |
remove(CacheEntryListener<K,V> listener) |
static final CacheEntryListenerSupport EMPTY
void add(CacheEntryListener<K,V> listener, boolean includeValues)
void remove(CacheEntryListener<K,V> listener)
Copyright © 2018 Atlassian. All rights reserved.