com.atlassian.cache.impl
Class DefaultCacheEntryListenerSupport<K,V>

java.lang.Object
  extended by 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:


Field Summary
 
Fields inherited from interface com.atlassian.cache.impl.CacheEntryListenerSupport
EMPTY
 
Constructor Summary
DefaultCacheEntryListenerSupport()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCacheEntryListenerSupport

public DefaultCacheEntryListenerSupport()
Method Detail

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.