Package org.apache.activemq.wireformat
Interface WireFormat
- All Known Implementing Classes:
ObjectStreamWireFormat
,OpenWireFormat
public interface WireFormat
Provides a mechanism to marshal commands into and out of packets
or into and out of streams, Channels and Datagrams.
-
Method Summary
Modifier and TypeMethodDescriptionint
Packet based marshalingvoid
marshal
(Object command, DataOutput out) Stream based marshalingvoid
setVersion
(int version) Packet based un-marshalingunmarshal
(ByteSequence packet) Packet based un-marshaling
-
Method Details
-
marshal
Packet based marshaling- Throws:
IOException
-
unmarshal
Packet based un-marshaling- Throws:
IOException
-
marshal
Stream based marshaling- Throws:
IOException
-
unmarshal
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
-