GigaSpaces XAP 9.7.2 API

com.j_spaces.javax.cache
Interface CacheListener


Deprecated.

@Deprecated
public interface CacheListener

The listener interface for receiving cache events.

Since:
5.0
Version:
1.0

Method Summary
 void onClear()
          Deprecated. Triggered when the cache is cleared.
 void onEvict(Object key)
          Deprecated. Triggered when a cache mapping is removed due to eviction.
 void onLoad(Object key)
          Deprecated. Triggered when a cache mapping is created due to the cache loader being consulted.
 void onPut(Object key)
          Deprecated. Triggered when a cache mapping is created due to calling Cache.put().
 void onRemove(Object key)
          Deprecated. Triggered when a cache mapping is removed due to calling Cache.remove().
 

Method Detail

onClear

void onClear()
Deprecated. 
Triggered when the cache is cleared.


onEvict

void onEvict(Object key)
Deprecated. 
Triggered when a cache mapping is removed due to eviction.

Parameters:
key - the key that was evicted

onLoad

void onLoad(Object key)
Deprecated. 
Triggered when a cache mapping is created due to the cache loader being consulted.

Parameters:
key - the key that was loaded

onPut

void onPut(Object key)
Deprecated. 
Triggered when a cache mapping is created due to calling Cache.put().

Parameters:
key - the key that was put

onRemove

void onRemove(Object key)
Deprecated. 
Triggered when a cache mapping is removed due to calling Cache.remove().

Parameters:
key - the key that was removed

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.