Class BasicDeliverBody
- java.lang.Object
-
- org.apache.qpid.server.protocol.v0_8.transport.AMQMethodBodyImpl
-
- org.apache.qpid.server.protocol.v0_8.transport.BasicDeliverBody
-
- All Implemented Interfaces:
AMQBody,AMQMethodBody,EncodableAMQDataBlock
public class BasicDeliverBody extends AMQMethodBodyImpl implements EncodableAMQDataBlock, AMQMethodBody
-
-
Field Summary
Fields Modifier and Type Field Description static intCLASS_IDstatic intMETHOD_ID-
Fields inherited from class org.apache.qpid.server.protocol.v0_8.transport.AMQMethodBodyImpl
TYPE
-
Fields inherited from interface org.apache.qpid.server.protocol.v0_8.transport.AMQMethodBody
TYPE
-
-
Constructor Summary
Constructors Constructor Description BasicDeliverBody(AMQShortString consumerTag, long deliveryTag, boolean redelivered, AMQShortString exchange, AMQShortString routingKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(MethodDispatcher dispatcher, int channelId)protected intgetBodySize()unsigned shortintgetClazz()AMQShortStringgetConsumerTag()longgetDeliveryTag()AMQShortStringgetExchange()intgetMethod()booleangetRedelivered()AMQShortStringgetRoutingKey()static voidprocess(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer, ClientChannelMethodProcessor dispatcher)java.lang.StringtoString()voidwriteMethodPayload(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)-
Methods inherited from class org.apache.qpid.server.protocol.v0_8.transport.AMQMethodBodyImpl
generateFrame, getFrameType, getSize, getSizeOf, getSizeOf, getSizeOf, handle, writeAMQShortString, writeBitfield, writeByte, writeBytes, writeFieldTable, writeInt, writeLong, writePayload, writeShort, writeUnsignedByte, writeUnsignedInteger, writeUnsignedShort
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.protocol.v0_8.transport.AMQBody
getFrameType, handle, writePayload
-
Methods inherited from interface org.apache.qpid.server.protocol.v0_8.transport.AMQMethodBody
generateFrame, getSize
-
-
-
-
Field Detail
-
CLASS_ID
public static final int CLASS_ID
- See Also:
- Constant Field Values
-
METHOD_ID
public static final int METHOD_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BasicDeliverBody
public BasicDeliverBody(AMQShortString consumerTag, long deliveryTag, boolean redelivered, AMQShortString exchange, AMQShortString routingKey)
-
-
Method Detail
-
getClazz
public int getClazz()
- Specified by:
getClazzin interfaceAMQMethodBody- Returns:
- unsigned short
-
getMethod
public int getMethod()
- Specified by:
getMethodin interfaceAMQMethodBody- Returns:
- unsigned short
-
getConsumerTag
public final AMQShortString getConsumerTag()
-
getDeliveryTag
public final long getDeliveryTag()
-
getRedelivered
public final boolean getRedelivered()
-
getExchange
public final AMQShortString getExchange()
-
getRoutingKey
public final AMQShortString getRoutingKey()
-
getBodySize
protected int getBodySize()
Description copied from class:AMQMethodBodyImplunsigned short- Specified by:
getBodySizein classAMQMethodBodyImpl- Returns:
- body size
-
writeMethodPayload
public void writeMethodPayload(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)
- Specified by:
writeMethodPayloadin classAMQMethodBodyImpl
-
execute
public boolean execute(MethodDispatcher dispatcher, int channelId) throws QpidException
- Specified by:
executein interfaceAMQMethodBody- Throws:
QpidException
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfaceAMQMethodBody- Overrides:
toStringin classjava.lang.Object
-
process
public static void process(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer, ClientChannelMethodProcessor dispatcher)
-
-