public interface CacheEvictionCallback<Key,Value> extends java.io.Serializable
CascadingCache
instances.
This enables a to do processing whenever an entry is evicted from the Cache.Modifier and Type | Field and Description |
---|---|
static CacheEvictionCallback |
NULL
NO-OP implementation of
CacheEvictionCallback . |
Modifier and Type | Method and Description |
---|---|
void |
evict(java.util.Map.Entry<Key,Value> entry)
Method will be called by the
CascadingCache implementation whenever a key is evicted. |
static final CacheEvictionCallback NULL
CacheEvictionCallback
.void evict(java.util.Map.Entry<Key,Value> entry)
CascadingCache
implementation whenever a key is evicted.entry
- The entry being removed from the cache.Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.