public class QueueSpecification extends Object
If a queue specification has a null name, the queue to be created
will have a server-generated name and will be non-durable, exclusive, and
auto-delete. To have more control over the properties of a queue with
a server-generated name, specify a non-null, empty string name, "".
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
arguments |
protected boolean |
autoDelete |
protected boolean |
durable |
protected boolean |
exclusive |
protected String |
name |
| Constructor and Description |
|---|
QueueSpecification() |
| Modifier and Type | Method and Description |
|---|---|
QueueSpecification |
arguments(Map<String,Object> arguments) |
QueueSpecification |
autoDelete(boolean autoDelete) |
QueueSpecification |
durable(boolean durable) |
QueueSpecification |
exclusive(boolean exclusive) |
Map<String,Object> |
getArguments() |
String |
getName() |
boolean |
isAutoDelete() |
boolean |
isDurable() |
boolean |
isExclusive() |
QueueSpecification |
name(String queue) |
static QueueSpecification |
queue() |
static QueueSpecification |
queue(String name) |
protected String name
protected boolean durable
protected boolean exclusive
protected boolean autoDelete
public static QueueSpecification queue()
public static QueueSpecification queue(String name)
public QueueSpecification name(String queue)
public QueueSpecification durable(boolean durable)
public QueueSpecification exclusive(boolean exclusive)
public QueueSpecification autoDelete(boolean autoDelete)
public QueueSpecification arguments(Map<String,Object> arguments)
public String getName()
public boolean isDurable()
public boolean isExclusive()
public boolean isAutoDelete()