Class StreamConsumer

java.lang.Object
org.redisson.api.StreamConsumer

public class StreamConsumer extends Object
Object containing details about Stream Consumer
Author:
Nikita Koksharov
  • Constructor Details

    • StreamConsumer

      public StreamConsumer(String name, int pending, long idleTime, long inactive)
  • Method Details

    • getPending

      public int getPending()
      Returns amount of pending messages for this consumer
      Returns:
      amount of pending messages
    • getName

      public String getName()
      Returns name of this consumer
      Returns:
      name of consumer
    • getIdleTime

      public long getIdleTime()
      Returns idle time in milliseconds since which this consumer hasn't consumed messages
      Returns:
      idle time in milliseconds
    • getInactive

      public long getInactive()
      Returns time in milliseconds since the last successful interaction of this consumer

      Requires Redis 7.2.0 and higher.

      Returns:
      time in milliseconds