Class StreamConsumerInfo

java.lang.Object
org.acemq.rabbitmq.admin.StreamConsumerInfo

public final class StreamConsumerInfo extends Object
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 Details

  • Method Details

    • subscriptionId

      public int subscriptionId()
      Returns:
      the id, unique only within its connection
    • name

      public String 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

      public String stream()
    • vhost

      public String vhost()
    • connectionName

      public String 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

      public String toString()
      Overrides:
      toString in class Object