public class TxEntryValueHolder extends Object implements Message
| Constructor and Description |
|---|
TxEntryValueHolder() |
| Modifier and Type | Method and Description |
|---|---|
byte |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
boolean |
hasReadValue() |
boolean |
hasValue() |
boolean |
hasWriteValue() |
void |
marshal(GridCacheSharedContext<?,?> sharedCtx,
GridCacheContext<?,?> ctx) |
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(GridCacheContext<?,?> ctx,
ClassLoader ldr) |
CacheObject |
value()
Gets stored value.
|
void |
value(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 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(GridCacheSharedContext<?,?> sharedCtx, GridCacheContext<?,?> ctx) throws IgniteCheckedException
sharedCtx - Shared cache context.ctx - Cache context.IgniteCheckedException - If marshaling failed.public void unmarshal(GridCacheContext<?,?> ctx, ClassLoader ldr) throws IgniteCheckedException
ctx - Cache context.ldr - Class loader.IgniteCheckedException - If unmarshalling failed.public 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.1.0-incubating Release Date : May 20 2015