com.atlassian.cache
Class CachedReferenceAdapter<V>

java.lang.Object
  extended by com.atlassian.cache.CachedReferenceAdapter<V>
All Implemented Interfaces:
CachedReferenceListener<V>

@PublicApi
public class CachedReferenceAdapter<V>
extends Object
implements CachedReferenceListener<V>

An abstract adapter for CachedReferenceListener.

Since:
2.4

Constructor Summary
CachedReferenceAdapter()
           
 
Method Summary
 void onEvict(CachedReferenceEvent<V> event)
          Invoked when the cached reference was evicted
 void onReset(CachedReferenceEvent<V> event)
          Invoked when the cached reference was reset
 void onSet(CachedReferenceEvent<V> event)
          Invoked when the cached reference was set, e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedReferenceAdapter

public CachedReferenceAdapter()
Method Detail

onEvict

public void onEvict(@Nonnull
                    CachedReferenceEvent<V> event)
Description copied from interface: CachedReferenceListener
Invoked when the cached reference was evicted

Specified by:
onEvict in interface CachedReferenceListener<V>
Parameters:
event - the eviction event

onSet

public void onSet(@Nonnull
                  CachedReferenceEvent<V> event)
Description copied from interface: CachedReferenceListener
Invoked when the cached reference was set, e.g. received a new value

Specified by:
onSet in interface CachedReferenceListener<V>
Parameters:
event - the set event

onReset

public void onReset(@Nonnull
                    CachedReferenceEvent<V> event)
Description copied from interface: CachedReferenceListener
Invoked when the cached reference was reset

Specified by:
onReset in interface CachedReferenceListener<V>
Parameters:
event - the reset event


Copyright © 2015 Atlassian. All rights reserved.