Interface CacheItemRemovedCallback

All Superinterfaces:

public interface CacheItemRemovedCallback
extends Notifications

Defines a callback method for notifying applications when a cached item is removed from the Cache.

Since this handler is invoked every time an item is removed from the Cache,
 doing a lot of processing inside the handler might have an impact on the performance of the cache and cluster.
 It is therefore advisable to do minimal processing inside the handler.

Method Summary
 void itemRemoved(java.lang.String key, java.lang.Object value, CacheItemRemovedReason reason)
          The method which is invoked.

Method Detail


void itemRemoved(java.lang.String key,
                 java.lang.Object value,
                 CacheItemRemovedReason reason)
The method which is invoked.

key - The index location for the item removed from the cache.
value - The object item removed from the cache.
reason - The reason the item was removed from the cache, as specified by the CacheItemRemovedReason enumeration.