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(DataInput dataIn)
          Read the entry from the RawContainer
 void writePayload(T object, DataOutput dataOut)
          Write the payload of this entry to the RawContainer
 

Method Detail

writePayload

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

Parameters:
object -
dataOut -
Throws:
IOException

readPayload

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

Parameters:
dataIn -
Returns:
unmarshalled object
Throws:
IOException


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.