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