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
IOExceptionpublic long getSize()
AMQDataBlockgetSize in class AMQDataBlockpublic void writePayload(DataOutput buffer) throws IOException
AMQDataBlockwritePayload in class AMQDataBlockbuffer - the buffer to write toIOException - if there is a problem writing the outputpublic long writePayload(ByteBufferSender sender) throws IOException
writePayload in class AMQDataBlockIOExceptionpublic ProtocolVersion checkVersion() throws QpidException
QpidExceptionpublic byte getProtocolClass()
public byte getProtocolInstance()
public byte getProtocolMajor()
public byte getProtocolMinor()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.