|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CachePolicyListener
Callback interface between CachePolicy
and a Cache implementation
to notify about cached object eviction.
Note that CachePolicy
implementations typically use
object equality when removing listeners, so concrete
implementations of this interface should also pay attention to
their Object.equals(Object)
and Object.hashCode()
methods.
Method Summary | |
---|---|
void |
cacheObjectEvicted(java.lang.Object obj)
Notification that the cache this listener is attached to is evicting the object indicated. |
Method Detail |
---|
void cacheObjectEvicted(java.lang.Object obj) throws CacheEvictionException
obj
- object being evited from cache
CacheEvictionException
- if this listener encountered problems
while preparing for the specified object's eviction. For example,
a listener may try to persist the object to disk, and encounter
an IOException
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |