Package org.redisson.api
Class StreamMessageId
java.lang.Object
org.redisson.api.StreamMessageId
Stream Message ID object
- Author:
- Nikita Koksharov
-
Field Summary
Modifier and TypeFieldDescriptionstatic final StreamMessageId
Defines id to receive all Stream entries.static final StreamMessageId
Defines auto-generated id.static final StreamMessageId
Defines maximal id.static final StreamMessageId
Defines minimal id.static final StreamMessageId
Defines id to receive Stream entries never delivered to any other consumer.static final StreamMessageId
Defines id to receive Stream entries added since method invocation. -
Constructor Summary
-
Method Summary
-
Field Details
-
NEVER_DELIVERED
Defines id to receive Stream entries never delivered to any other consumer.Used in
RStream.readGroup(java.lang.String, java.lang.String, org.redisson.api.stream.StreamMultiReadGroupArgs)
method -
AUTO_GENERATED
Defines auto-generated id.Used in
RStream.add(org.redisson.api.stream.StreamAddArgs<K, V>)
method -
MIN
Defines minimal id.Used in
RStream.range(org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId)
methods -
MAX
Defines maximal id.Used in
RStream.range(org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId)
methods -
NEWEST
Defines id to receive Stream entries added since method invocation.Used in
RStream.read(org.redisson.api.stream.StreamMultiReadArgs)
,RStream.createGroup(org.redisson.api.stream.StreamCreateGroupArgs)
methods -
ALL
Defines id to receive all Stream entries.Used in
RStream.read(org.redisson.api.stream.StreamMultiReadArgs)
,RStream.createGroup(org.redisson.api.stream.StreamCreateGroupArgs)
methods
-
-
Constructor Details
-
StreamMessageId
public StreamMessageId(long id0) -
StreamMessageId
public StreamMessageId(long id0, long id1)
-
-
Method Details
-
getId0
public long getId0()Returns first part of ID- Returns:
- first part of ID
-
getId1
public long getId1()Returns second part of ID- Returns:
- second part of ID
-
hashCode
public int hashCode() -
equals
-
toString
-