public class ExchangeBuilder
extends java.lang.Object
ExchangeDefinition| Constructor and Description |
|---|
ExchangeBuilder(java.lang.String name)
Initializes the builder with the exchange name.
|
| Modifier and Type | Method and Description |
|---|---|
ExchangeBuilder |
autoDelete()
Defines the exchange to be automatically deleted.
|
ExchangeBuilder |
durable()
Defines the exchange to be durable.
|
ExchangeBuilder |
nonAutoDelete()
Defines the exchange not to be automatically deleted.
|
ExchangeBuilder |
nonDurable()
Defines the exchange not to be durable.
|
<F extends RoutingKeyFormatter> |
withRoutingKey(F formatter)
Creates the exchange definition with a routing key formatter.
|
public ExchangeBuilder(java.lang.String name)
name - The name of the exchange.public ExchangeBuilder durable()
public ExchangeBuilder nonDurable()
public ExchangeBuilder autoDelete()
public ExchangeBuilder nonAutoDelete()
public <F extends RoutingKeyFormatter> ExchangeDefinition<F> withRoutingKey(F formatter)
formatter - The routing key formatter.