Class ProtocolInitiation
- java.lang.Object
-
- org.apache.qpid.server.protocol.v0_8.transport.AMQDataBlock
-
- org.apache.qpid.server.protocol.v0_8.transport.ProtocolInitiation
-
- All Implemented Interfaces:
EncodableAMQDataBlock
public class ProtocolInitiation extends AMQDataBlock implements EncodableAMQDataBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProtocolInitiation.Decoder
-
Constructor Summary
Constructors Constructor Description ProtocolInitiation(byte[] protocolHeader, byte protocolClass, byte protocolInstance, byte protocolMajor, byte protocolMinor)ProtocolInitiation(QpidByteBuffer in)ProtocolInitiation(ProtocolVersion pv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtocolVersioncheckVersion()booleanequals(Object o)bytegetProtocolClass()bytegetProtocolInstance()bytegetProtocolMajor()bytegetProtocolMinor()longgetSize()Get the size of buffer needed to store the byte representation of this frame.inthashCode()StringtoString()longwritePayload(ByteBufferSender sender)
-
-
-
Constructor Detail
-
ProtocolInitiation
public ProtocolInitiation(byte[] protocolHeader, byte protocolClass, byte protocolInstance, byte protocolMajor, byte protocolMinor)
-
ProtocolInitiation
public ProtocolInitiation(ProtocolVersion pv)
-
ProtocolInitiation
public ProtocolInitiation(QpidByteBuffer in)
-
-
Method Detail
-
getSize
public long getSize()
Description copied from class:AMQDataBlockGet the size of buffer needed to store the byte representation of this frame.- Specified by:
getSizein classAMQDataBlock- Returns:
- unsigned integer
-
writePayload
public long writePayload(ByteBufferSender sender)
- Specified by:
writePayloadin classAMQDataBlock
-
checkVersion
public ProtocolVersion checkVersion() throws QpidException
- Throws:
QpidException
-
getProtocolClass
public byte getProtocolClass()
-
getProtocolInstance
public byte getProtocolInstance()
-
getProtocolMajor
public byte getProtocolMajor()
-
getProtocolMinor
public byte getProtocolMinor()
-
-