public class GridClientJdkMarshaller extends Object implements GridClientMarshaller
Modifier and Type | Field and Description |
---|---|
static byte |
ID
ID.
|
Constructor and Description |
---|
GridClientJdkMarshaller() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
marshal(Object obj,
int off)
Marshals object to byte array.
|
<T> T |
unmarshal(byte[] bytes)
Unmarshals object from byte array.
|
public static final byte ID
public ByteBuffer marshal(Object obj, int off) throws IOException
marshal
in interface GridClientMarshaller
obj
- Object to marshal.off
- Start offset.IOException
- If marshalling failed.public <T> T unmarshal(byte[] bytes) throws IOException
unmarshal
in interface GridClientMarshaller
bytes
- Byte array.IOException
- If unmarshalling failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017