public class CacheVersionedValue extends Object implements Message
| Constructor and Description |
|---|
CacheVersionedValue() |
CacheVersionedValue(CacheObject val,
GridCacheVersion ver) |
| Modifier and Type | Method and Description |
|---|---|
byte |
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 Messagepublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public byte directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016