Class AMQP.Queue.Bind
- java.lang.Object
-
- org.ow2.joram.mom.amqp.marshalling.AbstractMarshallingMethod
-
- org.ow2.joram.mom.amqp.marshalling.AMQP.Queue.Bind
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- AMQP.Queue
public static class AMQP.Queue.Bind extends AbstractMarshallingMethod
This method binds a queue to an exchange. Until a queue is bound it will not receive any messages. In a classic messaging model, store-and-forward queues are bound to a direct exchange and subscription queues are bound to a topic exchange.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description MapargumentsA set of arguments for the binding.Stringexchangestatic intINDEXbooleannoWaitStringqueueSpecifies the name of the queue to bind.intreserved1StringroutingKeySpecifies the routing key for the binding.private static longserialVersionUID-
Fields inherited from class org.ow2.joram.mom.amqp.marshalling.AbstractMarshallingMethod
channelNumber
-
-
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 bind.
-
exchange
public String exchange
-
routingKey
public String routingKey
Specifies the routing key for the binding. The routing key is used for routing messages depending on the exchange configuration. Not all exchanges use a routing key - refer to the specific exchange documentation. If the queue name is empty, the server uses the last queue declared on the channel. If the routing key is also empty, the server uses this queue name for the routing key as well. If the queue name is provided but the routing key is empty, the server does the binding with that empty routing key. The meaning of empty routing keys depends on the exchange implementation.
-
noWait
public boolean noWait
-
arguments
public Map arguments
A set of arguments for the binding. The syntax and semantics of these arguments depends on the exchange class.
-
INDEX
public static final int INDEX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Bind
public Bind(int reserved1, String queue, String exchange, String routingKey, boolean noWait, Map arguments)This method binds a queue to an exchange. Until a queue is bound it will not receive any messages. In a classic messaging model, store-and-forward queues are bound to a direct exchange and subscription queues are bound to a topic exchange.
-
Bind
public Bind()
-
-
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
-
-