org.codehaus.activemq.message
Class ResponseReceiptWriter
java.lang.Object
org.codehaus.activemq.message.AbstractPacketWriter
org.codehaus.activemq.message.ReceiptWriter
org.codehaus.activemq.message.ResponseReceiptWriter
- All Implemented Interfaces:
- PacketWriter
- public class ResponseReceiptWriter
- extends ReceiptWriter
Writes a ConsumerInfo object to a Stream
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResponseReceiptWriter
public ResponseReceiptWriter()
getPacketType
public int getPacketType()
- Return the type of Packet
- Specified by:
getPacketType
in interface PacketWriter
- Overrides:
getPacketType
in class ReceiptWriter
- Returns:
- integer representation of the type of Packet
writePacket
public void writePacket(Packet packet,
DataOutput dataOut)
throws IOException
- Write a Packet instance to data output stream
- Specified by:
writePacket
in interface PacketWriter
- Overrides:
writePacket
in class ReceiptWriter
- Parameters:
packet
- the instance to be seralizeddataOut
- the output stream
- Throws:
IOException
- thrown if an error occurs
Copyright © 2004 Protique, Ltd.. All Rights Reserved.