Package org.springframework.amqp.core
Class ExchangeBuilder
java.lang.Object
org.springframework.amqp.core.AbstractBuilder
org.springframework.amqp.core.BaseExchangeBuilder<ExchangeBuilder>
org.springframework.amqp.core.ExchangeBuilder
Builder providing a fluent API for building
Exchange
s.- Since:
- 1.6
- Author:
- Gary Russell, Artem Bilan
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
AnExchangeBuilder
extension for theConsistentHashExchange
. -
Field Summary
Fields inherited from class org.springframework.amqp.core.BaseExchangeBuilder
autoDelete, durable, internal, name, type
-
Constructor Summary
ConstructorDescriptionExchangeBuilder
(String name, String type) Construct an instance of the appropriate type. -
Method Summary
Modifier and TypeMethodDescriptionconsistentHashExchange
(String name) Return anx-consistent-hash
exchange builder.static ExchangeBuilder
directExchange
(String name) Return aDirectExchange
builder.static ExchangeBuilder
fanoutExchange
(String name) Return aFanoutExchange
builder.static ExchangeBuilder
headersExchange
(String name) Return aHeadersExchange
builder.static ExchangeBuilder
topicExchange
(String name) Return aTopicExchange
builder.Methods inherited from class org.springframework.amqp.core.BaseExchangeBuilder
_this, admins, alternate, autoDelete, build, configureExchange, delayed, durable, ignoreDeclarationExceptions, internal, suppressDeclaration, withArgument, withArguments
Methods inherited from class org.springframework.amqp.core.AbstractBuilder
getArguments, getOrCreateArguments
-
Constructor Details
-
ExchangeBuilder
Construct an instance of the appropriate type.- Parameters:
name
- the exchange nametype
- the type name- Since:
- 1.6.7
- See Also:
-
-
Method Details
-
directExchange
Return aDirectExchange
builder.- Parameters:
name
- the name.- Returns:
- the builder.
-
topicExchange
Return aTopicExchange
builder.- Parameters:
name
- the name.- Returns:
- the builder.
-
fanoutExchange
Return aFanoutExchange
builder.- Parameters:
name
- the name.- Returns:
- the builder.
-
headersExchange
Return aHeadersExchange
builder.- Parameters:
name
- the name.- Returns:
- the builder.
-
consistentHashExchange
Return anx-consistent-hash
exchange builder.- Parameters:
name
- the name.- Returns:
- the builder.
- Since:
- 3.2
-