Interface Management.ExchangeSpecification

Enclosing interface:
Management

public static interface Management.ExchangeSpecification
Specification of an exchange.
See Also:
  • Method Details

    • name

      The name of the exchange.
      Parameters:
      name - exchange name
      Returns:
      the exchange specification
    • autoDelete

      Management.ExchangeSpecification autoDelete(boolean autoDelete)
      Whether the exchange is deleted when last queue is unbound from it.
      Parameters:
      autoDelete - auto-delete flag.
      Returns:
      the exchange specification
    • internal

      Management.ExchangeSpecification internal(boolean internal)
      Whether the exchange is internal.

      Applications cannot publish directly to an internal exchange, only other exchanges can route to it (e.g. with exchange-to-exchange bindings or dead-lettering).

      Default is false.

      Parameters:
      internal - internal flag
      Returns:
      the exchange specification
      Since:
      1.8.0
    • type

      Type of the exchange.
      Parameters:
      type - exchange type
      Returns:
      the exchange specification
    • type

      Type of the exchange (as a string, for non-built-in exchange types).
      Parameters:
      type - exchange type
      Returns:
      the exchange specification
    • argument

      Exchange argument.
      Parameters:
      key - argument name
      value - argument value
      Returns:
      the exchange specification
    • arguments

      Set the exchange arguments.

      The argument map will replace any existing arguments.

      Parameters:
      arguments - arguments
      Returns:
      the exchange specification
    • declare

      void declare()
      Declare the exchange.