Class LongMarshaller
- java.lang.Object
-
- org.apache.activemq.store.kahadb.disk.util.LongMarshaller
-
- All Implemented Interfaces:
Marshaller<Long>
public class LongMarshaller extends Object implements Marshaller<Long>
Implementation of a Marshaller for a Long
-
-
Field Summary
Fields Modifier and Type Field Description static LongMarshallerINSTANCE
-
Constructor Summary
Constructors Constructor Description LongMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongdeepCopy(Long source)intgetFixedSize()booleanisDeepCopySupported()LongreadPayload(DataInput dataIn)Read the payload of the object from the DataInput stream.voidwritePayload(Long object, DataOutput dataOut)Write the payload of the object to the DataOutput stream.
-
-
-
Field Detail
-
INSTANCE
public static final LongMarshaller INSTANCE
-
-
Method Detail
-
writePayload
public void writePayload(Long object, DataOutput dataOut) throws IOException
Description copied from interface:MarshallerWrite the payload of the object to the DataOutput stream.- Specified by:
writePayloadin interfaceMarshaller<Long>- Throws:
IOException
-
readPayload
public Long readPayload(DataInput dataIn) throws IOException
Description copied from interface:MarshallerRead the payload of the object from the DataInput stream.- Specified by:
readPayloadin interfaceMarshaller<Long>- Returns:
- unmarshalled object
- Throws:
IOException
-
getFixedSize
public int getFixedSize()
- Specified by:
getFixedSizein interfaceMarshaller<Long>- Returns:
- -1 if the object do not always marshall to a fixed size, otherwise return that fixed size.
-
deepCopy
public Long deepCopy(Long source)
- Specified by:
deepCopyin interfaceMarshaller<Long>- Returns:
- a deep copy of the source object.
-
isDeepCopySupported
public boolean isDeepCopySupported()
- Specified by:
isDeepCopySupportedin interfaceMarshaller<Long>- Returns:
- true if the
Marshaller.deepCopy(Object)operations is supported.
-
-