Package org.acemq.rabbitmq.admin
Class ConsumerInfo
java.lang.Object
org.acemq.rabbitmq.admin.ConsumerInfo
One consumer on one queue.
The list that answers "is anything actually reading this queue, and is it allowed to?" —
which a consumer count alone does not, because a single-active-consumer queue reports several
consumers of which exactly one is active() and the rest are waiting.
-
Constructor Details
-
ConsumerInfo
-
-
Method Details
-
consumerTag
- Returns:
- the tag the client chose, which is what it uses to cancel
-
queue
-
vhost
-
ackRequired
public boolean ackRequired()- Returns:
- whether the consumer must acknowledge. False means auto-ack, and an auto-ack consumer loses every unprocessed message if it dies
-
exclusive
public boolean exclusive() -
active
public boolean active()- Returns:
- whether this consumer is currently receiving. On a queue with single active consumer, or a paused quorum queue, a consumer can be attached and not active — which a consumer count cannot distinguish from one that is working
-
activityStatus
- Returns:
up,waitingorsuspected_down
-
prefetchCount
public int prefetchCount() -
channelName
- Returns:
- the channel this consumer is on, joining it to
ChannelInfo.name()
-
arguments
-
toString
-