public class GridClientOptimizedMarshaller extends Object implements GridClientMarshaller
OptimizedMarshaller
to
GridClientMarshaller
interface.Modifier and Type | Field and Description |
---|---|
static byte |
ID
ID.
|
protected OptimizedMarshaller |
opMarsh
Optimized marshaller.
|
Constructor and Description |
---|
GridClientOptimizedMarshaller()
Default constructor.
|
GridClientOptimizedMarshaller(boolean requireSer,
int poolSize)
Constructs optimized marshaller with specific parameters.
|
GridClientOptimizedMarshaller(List<PluginProvider> plugins)
Constructor.
|
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
protected final OptimizedMarshaller opMarsh
public GridClientOptimizedMarshaller()
public GridClientOptimizedMarshaller(@Nullable List<PluginProvider> plugins)
plugins
- Plugins.public GridClientOptimizedMarshaller(boolean requireSer, int poolSize) throws IOException
requireSer
- Require serializable flag.poolSize
- Object streams pool size.IOException
- If an I/O error occurs while writing stream header.IgniteException
- If this marshaller is not supported on the current JVM.OptimizedMarshaller
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