Class 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 Detail

      • 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.
    • 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()