Interface Management.ExchangeSpecification
- Enclosing interface:
Management
public static interface Management.ExchangeSpecification
Specification of an exchange.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionExchange argument.Set the exchange arguments.autoDelete(boolean autoDelete) Whether the exchange is deleted when last queue is unbound from it.voiddeclare()Declare the exchange.internal(boolean internal) Whether the exchange is internal.The name of the exchange.type(Management.ExchangeType type) Type of the exchange.Type of the exchange (as a string, for non-built-in exchange types).
-
Method Details
-
name
The name of the exchange.- Parameters:
name- exchange name- Returns:
- the exchange specification
-
autoDelete
Whether the exchange is deleted when last queue is unbound from it.- Parameters:
autoDelete- auto-delete flag.- Returns:
- the exchange specification
-
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 namevalue- 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.
-