org.apache.activemq.kaha
Class MessageMarshaller

java.lang.Object
  extended by org.apache.activemq.kaha.MessageMarshaller
All Implemented Interfaces:
Marshaller<Message>

public class MessageMarshaller
extends Object
implements Marshaller<Message>

Implementation of a Marshaller for MessageIds


Constructor Summary
MessageMarshaller(WireFormat wireFormat)
          Constructor
 
Method Summary
 Message readPayload(DataInput dataIn)
          Read the entry from the RawContainer
 void writePayload(Message message, DataOutput dataOut)
          Write the payload of this entry to the RawContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageMarshaller

public MessageMarshaller(WireFormat wireFormat)
Constructor

Parameters:
wireFormat -
Method Detail

writePayload

public void writePayload(Message message,
                         DataOutput dataOut)
                  throws IOException
Write the payload of this entry to the RawContainer

Specified by:
writePayload in interface Marshaller<Message>
Parameters:
message -
dataOut -
Throws:
IOException

readPayload

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

Specified by:
readPayload in interface Marshaller<Message>
Parameters:
dataIn -
Returns:
unmarshalled object
Throws:
IOException


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