Class AMQP.Exchange.Declare

    • Field Detail

      • reserved1

        public int reserved1
      • exchange

        public String exchange
      • type

        public String type
        Each exchange belongs to one of a set of exchange types implemented by the server. The exchange types define the functionality of the exchange - i.e. how messages are routed through it. It is not valid or meaningful to attempt to change the type of an existing exchange.
      • passive

        public boolean passive
        If set, the server will reply with Declare-Ok if the exchange already exists with the same name, and raise an error if not. The client can use this to check whether an exchange exists without modifying the server state. When set, all other method fields except name and no-wait are ignored. A declare with both passive and no-wait has no effect. Arguments are compared for semantic equivalence.
      • durable

        public boolean durable
        If set when creating a new exchange, the exchange will be marked as durable. Durable exchanges remain active when a server restarts. Non-durable exchanges (transient exchanges) are purged if/when a server restarts.
      • reserved2

        public boolean reserved2
      • reserved3

        public boolean reserved3
      • noWait

        public boolean noWait
      • arguments

        public Map arguments
        A set of arguments for the declaration. The syntax and semantics of these arguments depends on the server implementation.
    • Constructor Detail

      • Declare

        public Declare​(int reserved1,
                       String exchange,
                       String type,
                       boolean passive,
                       boolean durable,
                       boolean reserved2,
                       boolean reserved3,
                       boolean noWait,
                       Map arguments)
        This method creates an exchange if it does not already exist, and if the exchange exists, verifies that it is of the correct and expected class.
      • Declare

        public Declare()