Package org.acemq.rabbitmq.admin
Class StreamConsumerInfo
java.lang.Object
org.acemq.rabbitmq.admin.StreamConsumerInfo
One subscription on a stream protocol connection.
A stream is not drained, so there is no queue depth to read. offsetLag() is the
equivalent: how far behind the end of the stream this consumer is.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StreamConsumerInfo
-
-
Method Details
-
subscriptionId
public int subscriptionId()- Returns:
- the id, unique only within its connection
-
name
- Returns:
- the consumer's name, under which the broker stores its offset; null for a consumer that tracks no offset and so starts over wherever it is told to on every restart
-
stream
-
vhost
-
connectionName
- Returns:
- the connection it is on; null until the broker's first statistics interval
-
active
public boolean active()- Returns:
- whether it is receiving. With single active consumer, the others in the group are attached and waiting
-
offset
public long offset() -
offsetLag
public long offsetLag()- Returns:
- how many messages it is behind the end of the stream
-
consumed
public long consumed() -
credits
public long credits()- Returns:
- chunks the client is ready for. A zero that stays zero is a client that stopped asking
-
toString
-