org.terracotta.toolkit.cache
Interface ToolkitCacheListener<K>


public interface ToolkitCacheListener<K>

A listener that can be added to ToolkitCache and get notified on eviction and expiration events


Method Summary
 void onEviction(K key)
          Called when the key gets evicted from the cache
 void onExpiration(K key)
          Called when the key gets expired from the cache
 

Method Detail

onEviction

void onEviction(K key)
Called when the key gets evicted from the cache


onExpiration

void onExpiration(K key)
Called when the key gets expired from the cache



Copyright © 2014 Terracotta, Inc.. All Rights Reserved.