Package org.apache.activemq.wireformat
Interface WireFormat
-
- All Known Implementing Classes:
AmqpWireFormat,MQTTWireFormat,ObjectStreamWireFormat,OpenWireFormat,StompWireFormat,TextWireFormat,XStreamWireFormat
public interface WireFormatProvides a mechanism to marshal commands into and out of packets or into and out of streams, Channels and Datagrams.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetVersion()ByteSequencemarshal(Object command)Packet based marshalingvoidmarshal(Object command, DataOutput out)Stream based marshalingvoidsetVersion(int version)Objectunmarshal(DataInput in)Packet based un-marshalingObjectunmarshal(ByteSequence packet)Packet based un-marshaling
-
-
-
Method Detail
-
marshal
ByteSequence marshal(Object command) throws IOException
Packet based marshaling- Throws:
IOException
-
unmarshal
Object unmarshal(ByteSequence packet) throws IOException
Packet based un-marshaling- Throws:
IOException
-
marshal
void marshal(Object command, DataOutput out) throws IOException
Stream based marshaling- Throws:
IOException
-
unmarshal
Object unmarshal(DataInput in) throws IOException
Packet based un-marshaling- Throws:
IOException
-
setVersion
void setVersion(int version)
- Parameters:
version- the version of the wire format
-
getVersion
int getVersion()
- Returns:
- the version of the wire format
-
-