Package org.apache.ignite.marshaller
Class AbstractMarshaller
- java.lang.Object
-
- org.apache.ignite.marshaller.AbstractMarshaller
-
- All Implemented Interfaces:
Marshaller
- Direct Known Subclasses:
AbstractNodeNameAwareMarshaller
public abstract class AbstractMarshaller extends Object implements Marshaller
Base class for marshallers. Provides default implementations of methods that work with byte array orGridByteArrayList. These implementations useGridByteArrayInputStreamorGridByteArrayOutputStreamto marshal and unmarshal objects.
-
-
Field Summary
Fields Modifier and Type Field Description protected MarshallerContextctxContext.static intDFLT_BUFFER_SIZEDefault initial buffer size for theGridByteArrayOutputStream.
-
Constructor Summary
Constructors Constructor Description AbstractMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarshallerContextgetContext()voidsetContext(MarshallerContext ctx)Sets marshaller context.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.marshaller.Marshaller
marshal, marshal, nodeName, onUndeploy, unmarshal, unmarshal
-
-
-
-
Field Detail
-
DFLT_BUFFER_SIZE
public static final int DFLT_BUFFER_SIZE
Default initial buffer size for theGridByteArrayOutputStream.- See Also:
- Constant Field Values
-
ctx
protected MarshallerContext ctx
Context.
-
-
Method Detail
-
getContext
public MarshallerContext getContext()
- Returns:
- Marshaller context.
-
setContext
public void setContext(MarshallerContext ctx)
Sets marshaller context.- Specified by:
setContextin interfaceMarshaller- Parameters:
ctx- Marshaller context.
-
-