java.lang.Object
org.springframework.data.redis.connection.stream.Consumer

public class Consumer extends Object
Value object representing a Stream consumer within a consumer group. Group name and consumer name are encoded as keys.
Author:
Mark Paluch
  • Method Details

    • from

      public static Consumer from(String group, String name)
      Create a new consumer.
      Parameters:
      group - name of the consumer group, must not be null or empty.
      name - name of the consumer, must not be null or empty.
      Returns:
      the consumer Consumer object.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getGroup

      public String getGroup()
    • getName

      public String getName()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object