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.OptimizedMarshallerpublic ByteBuffer marshal(Object obj, int off) throws IOException
marshal in interface GridClientMarshallerobj - Object to marshal.off - Start offset.IOException - If marshalling failed.public <T> T unmarshal(byte[] bytes)
throws IOException
unmarshal in interface GridClientMarshallerbytes - Byte array.IOException - If unmarshalling failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016