Class BaseExchangeBuilder<B extends BaseExchangeBuilder<B>>
java.lang.Object
org.springframework.amqp.core.AbstractBuilder
org.springframework.amqp.core.BaseExchangeBuilder<B>
- Type Parameters:
B
- the target class implementation type.
- Direct Known Subclasses:
ExchangeBuilder
,ExchangeBuilder.ConsistentHashExchangeBuilder
An
AbstractBuilder
extension for generics support.- Since:
- 3.2
- Author:
- Gary Russell, Artem Bilan
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBaseExchangeBuilder
(String name, String type) Construct an instance of the appropriate type. -
Method Summary
Modifier and TypeMethodDescriptionprotected final B
_this()
Admin instances, or admin bean names that should declare this exchange.Set the auto delete flag.<T extends Exchange>
Tbuild()
protected <T extends AbstractExchange>
TconfigureExchange
(T exchange) delayed()
Set the delayed flag.durable
(boolean isDurable) Set the durable flag.Switch on ignore exceptions such as mismatched properties when declaring.internal()
Set the internal flag.Switch to disable declaration of the exchange by any admin.withArgument
(String key, Object value) Add an argument.withArguments
(Map<String, Object> arguments) Add the arguments.Methods inherited from class org.springframework.amqp.core.AbstractBuilder
getArguments, getOrCreateArguments
-
Field Details
-
name
-
type
-
durable
protected boolean durable -
autoDelete
protected boolean autoDelete -
internal
protected boolean internal
-
-
Constructor Details
-
BaseExchangeBuilder
-
-
Method Details
-
autoDelete
-
durable
Set the durable flag.- Parameters:
isDurable
- the durable flag (default true).- Returns:
- the builder.
-
withArgument
-
withArguments
-
alternate
-
internal
-
delayed
-
ignoreDeclarationExceptions
Switch on ignore exceptions such as mismatched properties when declaring.- Returns:
- the builder.
- Since:
- 2.0
-
suppressDeclaration
Switch to disable declaration of the exchange by any admin.- Returns:
- the builder.
- Since:
- 2.1
-
admins
-
build
-
configureExchange
-
_this
-