java.lang.Object
io.lettuce.core.Consumer<K>
public class Consumer<K> extends Object
Value object representing a Stream consumer within a consumer group. Group name and consumer name are encoded as keys.
- Since:
- 5.1
- Author:
- Mark Paluch
- See Also:
RedisCodec
-
Method Summary
-
Method Details
-
from
Create a new consumer.- Parameters:
group- name of the consumer group, must not benullor empty.name- name of the consumer, must not benullor empty.- Returns:
- the consumer
Consumerobject.
-
getGroup
- Returns:
- name of the group.
-
getName
- Returns:
- name of the consumer.
-
equals
-
hashCode
public int hashCode() -
toString
-