|
IBM WebSphere® DataPower® XC10 Appliance Release 1.0 Client API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MapEventListener
This callback interface is implemented by the application when it wants to receive events about a Map such as the eviction of a map entry.
BackingMap.addMapEventListener(MapEventListener)
,
BackingMap.removeMapEventListener(MapEventListener)
,
BackingMap.setMapEventListeners(List)
Method Summary | |
---|---|
void |
entryEvicted(java.lang.Object key,
java.lang.Object value)
Invoked when the specified entry is evicted from the map. |
void |
preloadCompleted(java.lang.Throwable t)
Invoked when the preloading of this map has completed. |
Method Detail |
---|
void entryEvicted(java.lang.Object key, java.lang.Object value)
The eviction could have occurred either by an Evictor
's
processing or by invoking one of the invalidate
methods on
the ObjectMap
.
key
- The key for the map entry that was evicted.value
- The value that was in in the map entry evicted. The value object
should not be modified.Evictor
,
EvictionEventCallback
,
ObjectMap.invalidate(Object, boolean)
void preloadCompleted(java.lang.Throwable t)
This method is useful to determine when a preload operation finishes if asynchronous preloading is enabled. In addition if any error occurred during synchronous or asynchronous preload, it is reported with the invocation of this method.
t
- A Throwable object that indicates if preload completed without any
Throwable occuring during the preload of the map. A null reference
indicates preload completed without any Throwable objects occuring
during the preload of the map.Loader#preloadMap(Session, BackingMap)
,
BackingMap.setPreloadMode(boolean)
|
IBM WebSphere® DataPower® XC10 Appliance Release 1.0 Client API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |