Class AMQP.Basic.Consume
- java.lang.Object
-
- org.ow2.joram.mom.amqp.marshalling.AbstractMarshallingMethod
-
- org.ow2.joram.mom.amqp.marshalling.AMQP.Basic.Consume
-
- All Implemented Interfaces:
Serializable
- 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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description MapargumentsA set of arguments for the consume.StringconsumerTagSpecifies the identifier for the consumer.booleanexclusiveRequest exclusive consumer access, meaning only this consumer can access the queue.static intINDEXbooleannoAckbooleannoLocalbooleannoWaitStringqueueSpecifies the name of the queue to consume from.intreserved1private static longserialVersionUID-
Fields inherited from class org.ow2.joram.mom.amqp.marshalling.AbstractMarshallingMethod
channelNumber
-
-
Constructor Summary
Constructors Constructor Description Consume()Consume(int reserved1, String queue, String consumerTag, boolean noLocal, boolean noAck, boolean exclusive, boolean noWait, Map arguments)This method asks the server to start a "consumer", which is a transient request for messages from a specific queue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetClassId()StringgetClassName()intgetMethodId()StringgetMethodName()voidreadFrom(AMQPInputStream in)StringtoString()voidwriteTo(AMQPOutputStream out)-
Methods inherited from class org.ow2.joram.mom.amqp.marshalling.AbstractMarshallingMethod
read, toFrame
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
reserved1
public int reserved1
-
queue
public String queue
Specifies the name of the queue to consume from.
-
consumerTag
public 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 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
-
Consume
public Consume(int reserved1, String queue, String consumerTag, boolean noLocal, boolean noAck, boolean exclusive, boolean noWait, 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.
-
Consume
public Consume()
-
-
Method Detail
-
getMethodId
public int getMethodId()
- Specified by:
getMethodIdin classAbstractMarshallingMethod
-
getMethodName
public String getMethodName()
- Specified by:
getMethodNamein classAbstractMarshallingMethod
-
getClassId
public int getClassId()
- Specified by:
getClassIdin classAbstractMarshallingMethod
-
getClassName
public String getClassName()
- Specified by:
getClassNamein classAbstractMarshallingMethod
-
readFrom
public void readFrom(AMQPInputStream in) throws IOException, SyntaxErrorException
- Specified by:
readFromin classAbstractMarshallingMethod- Throws:
IOExceptionSyntaxErrorException
-
writeTo
public void writeTo(AMQPOutputStream out) throws IOException
- Specified by:
writeToin classAbstractMarshallingMethod- Throws:
IOException
-
-