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.


Field Summary
static CachedReferenceListenerSupport EMPTY
           
 
Method Summary
 void add(CachedReferenceListener<V> listener, boolean includeValues)
           
 void notifyEvict(V oldValue)
           
 void notifyReset(V oldValue)
           
 void notifySet(V value)
           
 void remove(CachedReferenceListener<V> listener)
           
 

Field Detail

EMPTY

static final CachedReferenceListenerSupport EMPTY
Method Detail

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.