Interface Management.QueueInfo
- Enclosing interface:
Management
public static interface Management.QueueInfo
Queue information.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe arguments of the queue.boolean
Whether the queue is deleted when last consumer unsubscribes.int
The number of consumers the queue has.boolean
durable()
Whether the queue is durable (will survive a server restart).boolean
Whether the queue is used by only one connection and will be deleted when that connection closes.leader()
The node the leader of the queue is on.members()
The nodes the queue has members on.long
The number of messages in the queue.name()
The name of the queue.replicas()
Deprecated, for removal: This API element is subject to removal in a future version.type()
The type of the queue.
-
Method Details
-
name
-
durable
boolean durable()Whether the queue is durable (will survive a server restart).- Returns:
- the durable flag
-
autoDelete
boolean autoDelete()Whether the queue is deleted when last consumer unsubscribes.- Returns:
- the auto-delete flag
-
exclusive
boolean exclusive()Whether the queue is used by only one connection and will be deleted when that connection closes.- Returns:
- the exclusive flag
-
type
-
arguments
-
leader
-
replicas
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, usemembers()
instead.- Returns:
- the nodes of the queue members
-
members
-
messageCount
long messageCount()The number of messages in the queue.- Returns:
- the queue message count
-
consumerCount
int consumerCount()The number of consumers the queue has.- Returns:
- the queue consumer count
-