com.atlassian.cache.impl
Class DefaultCacheEntryListenerSupport<K,V>
java.lang.Object
com.atlassian.cache.impl.DefaultCacheEntryListenerSupport<K,V>
- All Implemented Interfaces:
- CacheEntryListenerSupport<K,V>
public class DefaultCacheEntryListenerSupport<K,V>
- extends Object
- implements CacheEntryListenerSupport<K,V>
A utility class which:
- Manages a set of
CacheEntryListeners
- 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 |
DefaultCacheEntryListenerSupport
public DefaultCacheEntryListenerSupport()
add
public void add(CacheEntryListener<K,V> listener,
boolean includeValues)
- Specified by:
add in interface CacheEntryListenerSupport<K,V>
remove
public void remove(CacheEntryListener<K,V> listener)
- Specified by:
remove in interface CacheEntryListenerSupport<K,V>
notifyAdd
public void notifyAdd(K key,
V value)
- Specified by:
notifyAdd in interface CacheEntryListenerSupport<K,V>
notifyEvict
public void notifyEvict(K key,
V oldValue)
- Specified by:
notifyEvict in interface CacheEntryListenerSupport<K,V>
notifyRemove
public void notifyRemove(K key,
V oldValue)
- Specified by:
notifyRemove in interface CacheEntryListenerSupport<K,V>
notifyUpdate
public void notifyUpdate(K key,
V value,
V oldValue)
- Specified by:
notifyUpdate in interface CacheEntryListenerSupport<K,V>
Copyright © 2015 Atlassian. All rights reserved.