Interface Marshaller<T>
- All Known Implementing Classes:
BTreeNode.Marshaller,BytesMarshaller,IntegerMarshaller,ListNode.NodeMarshaller,LocationMarshaller,LongMarshaller,MessageDatabase.LastAckMarshaller,MessageDatabase.MessageKeysMarshaller,MessageDatabase.MessageStoreStatisticsMarshaller,MessageDatabase.StoredDestinationMarshaller,SequenceSet.Marshaller,StringMarshaller,TempMessageDatabase.MessageKeysMarshaller,TempMessageDatabase.StoredDestinationMarshaller,VariableMarshaller
public interface Marshaller<T>
-
Method Summary
Modifier and TypeMethodDescriptionintbooleanreadPayload(DataInput dataIn) Read the payload of the object from the DataInput stream.voidwritePayload(T object, DataOutput dataOut) Write the payload of the object to the DataOutput stream.
-
Method Details
-
writePayload
Write the payload of the object to the DataOutput stream.- Parameters:
object-dataOut-- Throws:
IOException
-
readPayload
Read the payload of the object from the DataInput stream.- Parameters:
dataIn-- Returns:
- unmarshalled object
- Throws:
IOException
-
getFixedSize
int getFixedSize()- Returns:
- -1 if the object do not always marshall to a fixed size, otherwise return that fixed size.
-
isDeepCopySupported
boolean isDeepCopySupported()- Returns:
- true if the
deepCopy(Object)operations is supported.
-
deepCopy
- Returns:
- a deep copy of the source object.
-