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(java.lang.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(java.lang.String name)
Creates a builder for a non-durable (transient) queue.
|
QueueBuilder |
withArgument(java.lang.String key,
java.lang.Object value)
The final queue will contain argument used to declare a queue.
|
QueueBuilder |
withArguments(java.util.Map<java.lang.String,java.lang.Object> arguments)
The final queue will contain arguments used to declare a queue.
|
getArguments, getOrCreateArguments
public static QueueBuilder durable()
spring.gen-<random>
.public static QueueBuilder nonDurable()
public static QueueBuilder durable(java.lang.String name)
name
- the name of the queue.public static QueueBuilder nonDurable(java.lang.String name)
name
- the name of the queue.public QueueBuilder exclusive()
public QueueBuilder autoDelete()
public QueueBuilder withArgument(java.lang.String key, java.lang.Object value)
key
- argument namevalue
- argument valuepublic QueueBuilder withArguments(java.util.Map<java.lang.String,java.lang.Object> arguments)
arguments
- the arguments mappublic Queue build()