public class CacheVersionedValue extends Object implements Message
DIRECT_TYPE_SIZE
Constructor and Description |
---|
CacheVersionedValue() |
CacheVersionedValue(CacheObject val,
GridCacheVersion ver) |
Modifier and Type | Method and Description |
---|---|
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
void |
finishUnmarshal(GridCacheContext ctx,
ClassLoader ldr)
This method is called after the whole message is received
and is responsible for unmarshalling state.
|
void |
onAckReceived()
Method called when ack message received.
|
void |
prepareMarshal(CacheObjectContext ctx)
This method is called before the whole message is sent
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
String |
toString() |
CacheObject |
value() |
GridCacheVersion |
version() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public CacheVersionedValue()
public CacheVersionedValue(CacheObject val, GridCacheVersion ver)
val
- Cache value.ver
- Cache version.public GridCacheVersion version()
public CacheObject value()
public void prepareMarshal(CacheObjectContext ctx) throws IgniteCheckedException
ctx
- Cache object 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 short directType()
directType
in interface Message
public byte fieldsCount()
fieldsCount
in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017