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 SummaryFields Modifier and Type Field Description protected MarshallerContextctxContext.static intDFLT_BUFFER_SIZEDefault initial buffer size for theGridByteArrayOutputStream.
 - 
Constructor SummaryConstructors Constructor Description AbstractMarshaller()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description MarshallerContextgetContext()abstract voidonUndeploy(ClassLoader ldr)Undeployment callback invoked when class loader is being undeployed.voidsetContext(MarshallerContext ctx)Sets marshaller context.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.ignite.marshaller.Marshallermarshal, marshal, unmarshal, unmarshal
 
- 
 
- 
- 
- 
Field Detail- 
DFLT_BUFFER_SIZEpublic static final int DFLT_BUFFER_SIZE Default initial buffer size for theGridByteArrayOutputStream.- See Also:
- Constant Field Values
 
 - 
ctxprotected MarshallerContext ctx Context.
 
- 
 - 
Method Detail- 
onUndeploypublic abstract void onUndeploy(ClassLoader ldr) Undeployment callback invoked when class loader is being undeployed. Some marshallers may want to clean their internal state that uses the undeployed class loader somehow.- Parameters:
- ldr- Class loader being undeployed.
 
 - 
getContextpublic MarshallerContext getContext() - Returns:
- Marshaller context.
 
 - 
setContextpublic void setContext(MarshallerContext ctx) Sets marshaller context.- Specified by:
- setContextin interface- Marshaller
- Parameters:
- ctx- Marshaller context.
 
 
- 
 
-