com.atlassian.cache
Class CacheEntryAdapter<K,V>

java.lang.Object
  extended by com.atlassian.cache.CacheEntryAdapter<K,V>
All Implemented Interfaces:
CacheEntryListener<K,V>

@PublicApi
public abstract class CacheEntryAdapter<K,V>
extends Object
implements CacheEntryListener<K,V>

An abstract adapter for CacheEntryListener.

Since:
2.4

Constructor Summary
CacheEntryAdapter()
           
 
Method Summary
 void onAdd(CacheEntryEvent<K,V> event)
          Invoked when a key-value was added to the cache
 void onEvict(CacheEntryEvent<K,V> event)
          Invoked when a key-value was evicted from the cache
 void onRemove(CacheEntryEvent<K,V> event)
          Invoked when a key-value was removed from the cache
 void onUpdate(CacheEntryEvent<K,V> event)
          Invoked when key-value was changed in the cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheEntryAdapter

public CacheEntryAdapter()
Method Detail

onAdd

public void onAdd(@Nonnull
                  CacheEntryEvent<K,V> event)
Description copied from interface: CacheEntryListener
Invoked when a key-value was added to the cache

Specified by:
onAdd in interface CacheEntryListener<K,V>
Parameters:
event - the addition event

onEvict

public void onEvict(@Nonnull
                    CacheEntryEvent<K,V> event)
Description copied from interface: CacheEntryListener
Invoked when a key-value was evicted from the cache

Specified by:
onEvict in interface CacheEntryListener<K,V>
Parameters:
event - the eviction event

onRemove

public void onRemove(@Nonnull
                     CacheEntryEvent<K,V> event)
Description copied from interface: CacheEntryListener
Invoked when a key-value was removed from the cache

Specified by:
onRemove in interface CacheEntryListener<K,V>
Parameters:
event - the removal event

onUpdate

public void onUpdate(@Nonnull
                     CacheEntryEvent<K,V> event)
Description copied from interface: CacheEntryListener
Invoked when key-value was changed in the cache

Specified by:
onUpdate in interface CacheEntryListener<K,V>
Parameters:
event - the update event


Copyright © 2015 Atlassian. All rights reserved.