public class ProtocolInitiation extends AMQDataBlock implements EncodableAMQDataBlock
Modifier and Type | Class and Description |
---|---|
static class |
ProtocolInitiation.Decoder |
Constructor and Description |
---|
ProtocolInitiation(byte[] protocolHeader,
byte protocolClass,
byte protocolInstance,
byte protocolMajor,
byte protocolMinor) |
ProtocolInitiation(MarkableDataInput in) |
ProtocolInitiation(ProtocolVersion pv) |
Modifier and Type | Method and Description |
---|---|
ProtocolVersion |
checkVersion() |
boolean |
equals(Object o) |
byte |
getProtocolClass() |
byte |
getProtocolInstance() |
byte |
getProtocolMajor() |
byte |
getProtocolMinor() |
long |
getSize()
Get the size of buffer needed to store the byte representation of this
frame.
|
int |
hashCode() |
String |
toString() |
long |
writePayload(ByteBufferSender sender) |
void |
writePayload(DataOutput buffer)
Writes the datablock to the specified buffer.
|
public ProtocolInitiation(byte[] protocolHeader, byte protocolClass, byte protocolInstance, byte protocolMajor, byte protocolMinor)
public ProtocolInitiation(ProtocolVersion pv)
public ProtocolInitiation(MarkableDataInput in) throws IOException
IOException
public long getSize()
AMQDataBlock
getSize
in class AMQDataBlock
public void writePayload(DataOutput buffer) throws IOException
AMQDataBlock
writePayload
in class AMQDataBlock
buffer
- the buffer to write toIOException
- if there is a problem writing the outputpublic long writePayload(ByteBufferSender sender) throws IOException
writePayload
in class AMQDataBlock
IOException
public ProtocolVersion checkVersion() throws QpidException
QpidException
public byte getProtocolClass()
public byte getProtocolInstance()
public byte getProtocolMajor()
public byte getProtocolMinor()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.