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)
CacheListener
invalidated
in interface CacheListener
id
- The item's ID.public void received(Cache cache, long id, long version, ByteBuffer data)
CacheListener
invalidated
event. This method is not called when the item is
modified locally by a set()
.received
in interface CacheListener
id
- The item's ID.version
- The item's version.data
- The item's contents.public void evicted(Cache cache, long id)
CacheListener
evicted
in interface CacheListener
id
- The item's ID.public void killed(Cache cache, long id)
CacheListener
killed
in interface CacheListener
id
- The item's ID.public void messageReceived(byte[] message)
CacheListener
messageReceived
in interface CacheListener
message
- The message's contents.