public final class QueueBuilder extends AbstractBuilder
| Modifier and Type | Method and Description |
|---|---|
QueueBuilder |
autoDelete()
The final queue will auto delete.
|
Queue |
build()
Builds a final queue.
|
static QueueBuilder |
durable()
Creates a builder for a durable queue with a generated
unique name -
spring.gen-<random>. |
static QueueBuilder |
durable(String name)
Creates a builder for a durable queue.
|
QueueBuilder |
exclusive()
The final queue will be exclusive.
|
static QueueBuilder |
nonDurable()
Creates a builder for a non-durable (transient) queue.
|
static QueueBuilder |
nonDurable(String name)
Creates a builder for a non-durable (transient) queue.
|
QueueBuilder |
withArgument(String key,
Object value)
The final queue will contain argument used to declare a queue.
|
QueueBuilder |
withArguments(Map<String,Object> arguments)
The final queue will contain arguments used to declare a queue.
|
getArguments, getOrCreateArgumentspublic static QueueBuilder durable()
spring.gen-<random>.public static QueueBuilder nonDurable()
public static QueueBuilder durable(String name)
name - the name of the queue.public static QueueBuilder nonDurable(String name)
name - the name of the queue.public QueueBuilder exclusive()
public QueueBuilder autoDelete()
public QueueBuilder withArgument(String key, Object value)
key - argument namevalue - argument valuepublic QueueBuilder withArguments(Map<String,Object> arguments)
arguments - the arguments mappublic Queue build()