public class GridCacheValueBytes extends MessageAdapter
MessageAdapter.Typereader, readState| Constructor and Description |
|---|
GridCacheValueBytes()
Private constructor for NULL instance.
|
GridCacheValueBytes(byte[] bytes,
boolean plain)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
directType()
Gets message type.
|
byte[] |
get() |
byte[] |
getIfMarshaled() |
byte[] |
getIfPlain() |
boolean |
isNull() |
boolean |
isPlain() |
static GridCacheValueBytes |
marshaled(byte[] bytes) |
static GridCacheValueBytes |
nil() |
static GridCacheValueBytes |
plain(Object bytes) |
boolean |
readFrom(ByteBuffer buf)
Reads this message from provided byte buffer.
|
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
setReader, skipRecoverypublic GridCacheValueBytes()
public GridCacheValueBytes(byte[] bytes,
boolean plain)
bytes - Bytes.plain - Flag indicating if provided byte array is actual value, not marshaled data.public static GridCacheValueBytes plain(Object bytes)
bytes - Bytes.public static GridCacheValueBytes marshaled(byte[] bytes)
bytes - Bytes.public static GridCacheValueBytes nil()
@Nullable public byte[] get()
@Nullable public byte[] getIfPlain()
null otherwise.@Nullable public byte[] getIfMarshaled()
null otherwise.public boolean isPlain()
public boolean isNull()
True if byte array is null.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in class MessageAdapterbuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf)
readFrom in class MessageAdapterbuf - Byte buffer.public byte directType()
directType in class MessageAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015