public class CacheEvictionEntry extends Object implements Message
DIRECT_TYPE_SIZE
Constructor and Description |
---|
CacheEvictionEntry()
Required by
Message . |
CacheEvictionEntry(KeyCacheObject key,
GridCacheVersion ver,
boolean near) |
Modifier and Type | Method and Description |
---|---|
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
void |
finishUnmarshal(GridCacheContext ctx,
ClassLoader ldr) |
KeyCacheObject |
key() |
boolean |
near() |
void |
onAckReceived()
Method called when ack message received.
|
void |
prepareMarshal(GridCacheContext ctx) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
GridCacheVersion |
version() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public CacheEvictionEntry()
Message
.public CacheEvictionEntry(KeyCacheObject key, GridCacheVersion ver, boolean near)
key
- Key.ver
- Version.near
- true
if key should be evicted from near cache.public KeyCacheObject key()
public GridCacheVersion version()
public boolean near()
True
if key should be evicted from near cache.public short directType()
directType
in interface Message
public void prepareMarshal(GridCacheContext ctx) throws IgniteCheckedException
ctx
- Context.IgniteCheckedException
- If failed.public void finishUnmarshal(GridCacheContext ctx, ClassLoader ldr) throws IgniteCheckedException
ctx
- Context.ldr
- Class loader.IgniteCheckedException
- If failed.public void onAckReceived()
onAckReceived
in interface Message
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public byte fieldsCount()
fieldsCount
in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017