public abstract class AbstractCacheListener extends Object implements CacheListener
CacheListener.| Constructor and Description |
|---|
AbstractCacheListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
evicted(Cache cache,
long id)
The data item has been evicted from the local cache.
|
void |
invalidated(Cache cache,
long id)
The data item has been invalidated - probably requested exclusively by another node, or, possibly, deleted.
|
void |
killed(Cache cache,
long id)
The data item belonged to a node that has died (without slave replacement)
|
void |
messageReceived(byte[] message)
Called when a message has been received.
|
void |
received(Cache cache,
long id,
long version,
ByteBuffer data)
The data item has been updated by another node.
|
public void invalidated(Cache cache, long id)
CacheListenerinvalidated in interface CacheListenerid - The item's ID.public void received(Cache cache, long id, long version, ByteBuffer data)
CacheListenerinvalidated event. This method is not called when the item is
modified locally by a set().received in interface CacheListenerid - The item's ID.version - The item's version.data - The item's contents.public void evicted(Cache cache, long id)
CacheListenerevicted in interface CacheListenerid - The item's ID.public void killed(Cache cache, long id)
CacheListenerkilled in interface CacheListenerid - The item's ID.public void messageReceived(byte[] message)
CacheListenermessageReceived in interface CacheListenermessage - The message's contents.