public class TxEntryValueHolder extends Object implements Message
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
TxEntryValueHolder() |
| Modifier and Type | Method and Description |
|---|---|
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
boolean |
hasReadValue() |
boolean |
hasValue() |
boolean |
hasWriteValue() |
void |
marshal(GridCacheContext<?,?> ctx) |
void |
onAckReceived()
Method called when ack message received.
|
GridCacheOperation |
op()
Gets cache operation.
|
void |
op(GridCacheOperation op)
Sets cache operation.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
String |
toString() |
void |
unmarshal(CacheObjectValueContext ctx,
ClassLoader ldr) |
CacheObject |
value()
Gets stored value.
|
void |
value(@Nullable CacheObject val) |
void |
value(GridCacheOperation op,
CacheObject val,
boolean hasWriteVal,
boolean hasReadVal) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public void value(GridCacheOperation op, CacheObject val, boolean hasWriteVal, boolean hasReadVal)
op - Cache operation.val - Value.hasWriteVal - Write value presence flag.hasReadVal - Read value presence flag.public boolean hasValue()
True if has read or write value.public CacheObject value()
public void value(@Nullable
@Nullable CacheObject val)
val - Stored value.public GridCacheOperation op()
public void op(GridCacheOperation op)
op - Cache operation.public boolean hasWriteValue()
True if write value was set.public boolean hasReadValue()
True if read value was set.public void marshal(GridCacheContext<?,?> ctx) throws IgniteCheckedException
ctx - Cache context.IgniteCheckedException - If marshaling failed.public void unmarshal(CacheObjectValueContext ctx, ClassLoader ldr) throws IgniteCheckedException
ctx - Cache context.ldr - Class loader.IgniteCheckedException - If unmarshalling failed.public void onAckReceived()
onAckReceived in interface Messagepublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Message
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021