com.atlassian.cache
Interface CacheEntryListener<K,V>

All Known Implementing Classes:
CacheEntryAdapter

@PublicApi
public interface CacheEntryListener<K,V>

A cache listener.

Since:
2.4

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
 

Method Detail

onAdd

void onAdd(@Nonnull
           CacheEntryEvent<K,V> event)
Invoked when a key-value was added to the cache

Parameters:
event - the addition event

onEvict

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

Parameters:
event - the eviction event

onRemove

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

Parameters:
event - the removal event

onUpdate

void onUpdate(@Nonnull
              CacheEntryEvent<K,V> event)
Invoked when key-value was changed in the cache

Parameters:
event - the update event


Copyright © 2015 Atlassian. All rights reserved.