Joram 5.2.4

org.objectweb.joram.mom.amqp.marshalling
Class AMQP.Basic.Consume

java.lang.Object
  extended by org.objectweb.joram.mom.amqp.marshalling.AbstractMarshallingMethod
      extended by org.objectweb.joram.mom.amqp.marshalling.AMQP.Basic.Consume
All Implemented Interfaces:
FrameBuilder
Enclosing class:
AMQP.Basic

public static class AMQP.Basic.Consume
extends AbstractMarshallingMethod

This method asks the server to start a "consumer", which is a transient request for messages from a specific queue. Consumers last as long as the channel they were declared on, or until the client cancels them.


Field Summary
 java.util.Map arguments
          A set of arguments for the consume.
 java.lang.String consumerTag
          Specifies the identifier for the consumer.
 boolean exclusive
          Request exclusive consumer access, meaning only this consumer can access the queue.
static int INDEX
           
 boolean noAck
           
 boolean noLocal
           
 boolean noWait
           
 java.lang.String queue
          Specifies the name of the queue to consume from.
 int reserved1
           
 
Fields inherited from class org.objectweb.joram.mom.amqp.marshalling.AbstractMarshallingMethod
logger, NULL_METHOD_ID
 
Constructor Summary
AMQP.Basic.Consume()
           
AMQP.Basic.Consume(int reserved1, java.lang.String queue, java.lang.String consumerTag, boolean noLocal, boolean noAck, boolean exclusive, boolean noWait, java.util.Map arguments)
          This method asks the server to start a "consumer", which is a transient request for messages from a specific queue.
 
Method Summary
 int getClassId()
           
 java.lang.String getClassName()
           
 int getMethodId()
           
 java.lang.String getMethodName()
           
 void readFrom(AMQPInputStream in)
           
 java.lang.String toString()
           
 void writeTo(AMQPOutputStream out)
           
 
Methods inherited from class org.objectweb.joram.mom.amqp.marshalling.AbstractMarshallingMethod
read, toFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

reserved1

public int reserved1

queue

public java.lang.String queue
Specifies the name of the queue to consume from.


consumerTag

public java.lang.String consumerTag
Specifies the identifier for the consumer. The consumer tag is local to a channel, so two clients can use the same consumer tags. If this field is empty the server will generate a unique tag.


noLocal

public boolean noLocal

noAck

public boolean noAck

exclusive

public boolean exclusive
Request exclusive consumer access, meaning only this consumer can access the queue.


noWait

public boolean noWait

arguments

public java.util.Map arguments
A set of arguments for the consume. The syntax and semantics of these arguments depends on the server implementation.


INDEX

public static final int INDEX
See Also:
Constant Field Values
Constructor Detail

AMQP.Basic.Consume

public AMQP.Basic.Consume(int reserved1,
                          java.lang.String queue,
                          java.lang.String consumerTag,
                          boolean noLocal,
                          boolean noAck,
                          boolean exclusive,
                          boolean noWait,
                          java.util.Map arguments)
This method asks the server to start a "consumer", which is a transient request for messages from a specific queue. Consumers last as long as the channel they were declared on, or until the client cancels them.


AMQP.Basic.Consume

public AMQP.Basic.Consume()
Method Detail

getMethodId

public int getMethodId()
Specified by:
getMethodId in class AbstractMarshallingMethod

getMethodName

public java.lang.String getMethodName()
Specified by:
getMethodName in class AbstractMarshallingMethod

getClassId

public int getClassId()
Specified by:
getClassId in class AbstractMarshallingMethod

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in class AbstractMarshallingMethod

readFrom

public void readFrom(AMQPInputStream in)
              throws java.io.IOException
Specified by:
readFrom in class AbstractMarshallingMethod
Throws:
java.io.IOException

writeTo

public void writeTo(AMQPOutputStream out)
             throws java.io.IOException
Specified by:
writeTo in class AbstractMarshallingMethod
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Joram 5.2.4

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved