org.apache.qpid.framing.amqp_0_9
Class StreamConsumeBodyImpl

java.lang.Object
  extended by org.apache.qpid.framing.AMQMethodBodyImpl
      extended by org.apache.qpid.framing.amqp_0_9.AMQMethodBody_0_9
          extended by org.apache.qpid.framing.amqp_0_9.StreamConsumeBodyImpl
All Implemented Interfaces:
AMQBody, AMQMethodBody, EncodableAMQDataBlock, StreamConsumeBody

public class StreamConsumeBodyImpl
extends AMQMethodBody_0_9
implements StreamConsumeBody


Field Summary
static int CLASS_ID
           
static int METHOD_ID
           
 
Fields inherited from class org.apache.qpid.framing.AMQMethodBodyImpl
TYPE
 
Fields inherited from interface org.apache.qpid.framing.AMQMethodBody
TYPE
 
Constructor Summary
StreamConsumeBodyImpl(org.apache.mina.common.ByteBuffer buffer)
           
StreamConsumeBodyImpl(int ticket, AMQShortString queue, AMQShortString consumerTag, boolean noLocal, boolean exclusive, boolean nowait, FieldTable filter)
           
 
Method Summary
 boolean execute(MethodDispatcher dispatcher, int channelId)
           
protected  int getBodySize()
          unsigned short
 int getClazz()
           
 AMQShortString getConsumerTag()
           
 boolean getExclusive()
           
static AMQMethodBodyInstanceFactory getFactory()
           
 FieldTable getFilter()
           
 int getMethod()
           
 boolean getNoLocal()
           
 boolean getNowait()
           
 AMQShortString getQueue()
           
 int getTicket()
           
 String toString()
           
 void writeMethodPayload(org.apache.mina.common.ByteBuffer buffer)
           
 
Methods inherited from class org.apache.qpid.framing.amqp_0_9.AMQMethodBody_0_9
getMajor, getMinor
 
Methods inherited from class org.apache.qpid.framing.AMQMethodBodyImpl
generateFrame, getChannelException, getChannelException, getChannelNotFoundException, getConnectionException, getConnectionException, getFrameType, getSize, getSizeOf, getSizeOf, getSizeOf, getSizeOf, handle, readAMQShortString, readBitfield, readByte, readBytes, readContent, readFieldTable, readInt, readLong, readShort, readTimestamp, readUnsignedByte, readUnsignedInteger, readUnsignedShort, writeAMQShortString, writeBitfield, writeByte, writeBytes, writeContent, writeFieldTable, writeInt, writeLong, writePayload, writeShort, writeTimestamp, 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.framing.AMQMethodBody
generateFrame, getChannelException, getChannelException, getChannelNotFoundException, getConnectionException, getConnectionException, getMajor, getMinor, getSize, writePayload
 
Methods inherited from interface org.apache.qpid.framing.AMQBody
getFrameType, handle
 

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

StreamConsumeBodyImpl

public StreamConsumeBodyImpl(org.apache.mina.common.ByteBuffer buffer)
                      throws AMQFrameDecodingException
Throws:
AMQFrameDecodingException

StreamConsumeBodyImpl

public StreamConsumeBodyImpl(int ticket,
                             AMQShortString queue,
                             AMQShortString consumerTag,
                             boolean noLocal,
                             boolean exclusive,
                             boolean nowait,
                             FieldTable filter)
Method Detail

getFactory

public static AMQMethodBodyInstanceFactory getFactory()

getClazz

public int getClazz()
Specified by:
getClazz in interface AMQMethodBody
Returns:
unsigned short

getMethod

public int getMethod()
Specified by:
getMethod in interface AMQMethodBody
Returns:
unsigned short

getTicket

public final int getTicket()
Specified by:
getTicket in interface StreamConsumeBody

getQueue

public final AMQShortString getQueue()
Specified by:
getQueue in interface StreamConsumeBody

getConsumerTag

public final AMQShortString getConsumerTag()
Specified by:
getConsumerTag in interface StreamConsumeBody

getNoLocal

public final boolean getNoLocal()
Specified by:
getNoLocal in interface StreamConsumeBody

getExclusive

public final boolean getExclusive()
Specified by:
getExclusive in interface StreamConsumeBody

getNowait

public final boolean getNowait()
Specified by:
getNowait in interface StreamConsumeBody

getFilter

public final FieldTable getFilter()

getBodySize

protected int getBodySize()
Description copied from class: AMQMethodBodyImpl
unsigned short

Specified by:
getBodySize in class AMQMethodBodyImpl

writeMethodPayload

public void writeMethodPayload(org.apache.mina.common.ByteBuffer buffer)
Specified by:
writeMethodPayload in interface AMQMethodBody

execute

public boolean execute(MethodDispatcher dispatcher,
                       int channelId)
                throws AMQException
Specified by:
execute in interface AMQMethodBody
Throws:
AMQException

toString

public String toString()
Specified by:
toString in interface AMQMethodBody
Overrides:
toString in class Object


Licensed to the Apache Software Foundation