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 |
protected boolean |
passive |
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() |
boolean |
isPassive() |
QueueSpecification |
name(String queue) |
QueueSpecification |
passive(boolean passive) |
static QueueSpecification |
queue() |
static QueueSpecification |
queue(String name) |
protected String name
protected boolean durable
protected boolean exclusive
protected boolean autoDelete
protected boolean passive
public static QueueSpecification queue()
public static QueueSpecification queue(@Nullable String name)
public QueueSpecification name(@Nullable String queue)
public QueueSpecification durable(boolean durable)
public QueueSpecification exclusive(boolean exclusive)
public QueueSpecification autoDelete(boolean autoDelete)
public QueueSpecification arguments(@Nullable Map<String,Object> arguments)
public QueueSpecification passive(boolean passive)
public boolean isDurable()
public boolean isExclusive()
public boolean isAutoDelete()
public boolean isPassive()