public interface WireFormat
Modifier and Type | Method and Description |
---|---|
int |
getVersion() |
ByteSequence |
marshal(Object command)
Packet based marshaling
|
void |
marshal(Object command,
DataOutput out)
Stream based marshaling
|
void |
setVersion(int version) |
Object |
unmarshal(ByteSequence packet)
Packet based un-marshaling
|
Object |
unmarshal(DataInput in)
Packet based un-marshaling
|
ByteSequence marshal(Object command) throws IOException
IOException
Object unmarshal(ByteSequence packet) throws IOException
IOException
void marshal(Object command, DataOutput out) throws IOException
IOException
Object unmarshal(DataInput in) throws IOException
IOException
void setVersion(int version)
the
- version of the wire formatint getVersion()
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.