org.objectweb.joram.mom.amqp.marshalling
Class AMQP.Queue.Bind
java.lang.Object
org.objectweb.joram.mom.amqp.marshalling.AbstractMarshallingMethod
org.objectweb.joram.mom.amqp.marshalling.AMQP.Queue.Bind
- All Implemented Interfaces:
- FrameBuilder
- 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.
Field Summary |
java.util.Map |
arguments
A set of arguments for the binding. |
java.lang.String |
exchange
|
static int |
INDEX
|
boolean |
noWait
|
java.lang.String |
queue
Specifies the name of the queue to bind. |
int |
reserved1
|
java.lang.String |
routingKey
Specifies the routing key for the binding. |
Constructor Summary |
AMQP.Queue.Bind()
|
AMQP.Queue.Bind(int reserved1,
java.lang.String queue,
java.lang.String exchange,
java.lang.String routingKey,
boolean noWait,
java.util.Map arguments)
This method binds a queue to an exchange. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
reserved1
public int reserved1
queue
public java.lang.String queue
- Specifies the name of the queue to bind.
exchange
public java.lang.String exchange
routingKey
public java.lang.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 java.util.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
AMQP.Queue.Bind
public AMQP.Queue.Bind(int reserved1,
java.lang.String queue,
java.lang.String exchange,
java.lang.String routingKey,
boolean noWait,
java.util.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.
AMQP.Queue.Bind
public AMQP.Queue.Bind()
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
Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved