public static class Cache.EntryListenerAdapter extends Object implements Cache.EntryListener
Constructor and Description |
---|
EntryListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone operation used by some Cache implementations.
|
void |
onEntryCreated(Object key,
Object value)
Invoked when a new item has been added to the cache
|
void |
onEntryExpired(Object key)
Invoked when an entry has expired.
|
void |
onEntryRead(Object key,
Object value)
Invoked when an item was retrieved from the Cache
|
void |
onEntryRemoved(Object key)
Invoked when an item was removed from the cache, either following an expiry, or by explicitly calling
Cache.remove(Object) . |
void |
onEntryUpdated(Object key,
Object value)
Invoked when an item has been updated.
|
public void onEntryExpired(Object key)
Cache.EntryListener
onEntryExpired
in interface Cache.EntryListener
key
- The key of the entry that expiredpublic void onEntryRemoved(Object key)
Cache.EntryListener
Cache.remove(Object)
.onEntryRemoved
in interface Cache.EntryListener
key
- The key of the entry that was removedpublic void onEntryUpdated(Object key, Object value)
Cache.EntryListener
onEntryUpdated
in interface Cache.EntryListener
key
- The key of the entry that was updatedvalue
- The new value of the entrypublic void onEntryCreated(Object key, Object value)
Cache.EntryListener
onEntryCreated
in interface Cache.EntryListener
key
- The key of the entry that was addedvalue
- The value of the entrypublic void onEntryRead(Object key, Object value)
Cache.EntryListener
onEntryRead
in interface Cache.EntryListener
key
- The key of the entry that was readvalue
- The value of the entry readpublic Object clone() throws CloneNotSupportedException
Cache.EntryListener
Cloneable
to indicate it supports cloning.clone
in interface Cache.EntryListener
clone
in class Object
CloneNotSupportedException
- if cloning is not supportedCloneable
Copyright © 2010–2018. All rights reserved.