org.apache.activemq.kaha
Interface Marshaller<T>

All Known Implementing Classes:
AMQTxMarshaller, AtomicIntegerMarshaller, BytesMarshaller, CommandMarshaller, ConsumerMessageRefMarshaller, IntegerMarshaller, MessageIdMarshaller, MessageMarshaller, ObjectMarshaller, ReferenceRecordMarshaller, StoreEntryMarshaller, StringMarshaller, TopicSubAckMarshaller, TransactionMarshaller

public interface Marshaller<T>

Marshaller for marshalling in/out objects to a RawContainer


Method Summary
 T readPayload(java.io.DataInput dataIn)
          Read the entry from the RawContainer
 void writePayload(T object, java.io.DataOutput dataOut)
          Write the payload of this entry to the RawContainer
 

Method Detail

writePayload

void writePayload(T object,
                  java.io.DataOutput dataOut)
                  throws java.io.IOException
Write the payload of this entry to the RawContainer

Parameters:
object -
dataOut -
Throws:
java.io.IOException

readPayload

T readPayload(java.io.DataInput dataIn)
              throws java.io.IOException
Read the entry from the RawContainer

Parameters:
dataIn -
Returns:
unmarshalled object
Throws:
java.io.IOException


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.