com.alachisoft.ncache.web.caching
Interface CacheItemRemovedCallback
public interface CacheItemRemovedCallback
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.
itemRemoved
void itemRemoved(java.lang.String key,
java.lang.Object value,
CacheItemRemovedReason reason)
- The method which is invoked.
- Parameters:
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.