Package org.redisson.api
Class StreamMessageId
- java.lang.Object
-
- org.redisson.api.StreamMessageId
-
public class StreamMessageId extends Object
Stream Message ID object- Author:
- Nikita Koksharov
-
-
Field Summary
Fields Modifier and Type Field Description static StreamMessageId
ALL
Defines id to receive all Stream entries.static StreamMessageId
AUTO_GENERATED
Defines auto-generated id.static StreamMessageId
MAX
Defines maximal id.static StreamMessageId
MIN
Defines minimal id.static StreamMessageId
NEVER_DELIVERED
Defines id to receive Stream entries never delivered to any other consumer.static StreamMessageId
NEWEST
Defines id to receive Stream entries added since method invocation.
-
Constructor Summary
Constructors Constructor Description StreamMessageId(long id0)
StreamMessageId(long id0, long id1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
long
getId0()
Returns first part of IDlong
getId1()
Returns second part of IDint
hashCode()
String
toString()
-
-
-
Field Detail
-
NEVER_DELIVERED
public static final StreamMessageId 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
public static final StreamMessageId AUTO_GENERATED
Defines auto-generated id.Used in
RStream.add(org.redisson.api.stream.StreamAddArgs<K, V>)
method
-
MIN
public static final StreamMessageId MIN
Defines minimal id.Used in
RStream.range(org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId)
methods
-
MAX
public static final StreamMessageId MAX
Defines maximal id.Used in
RStream.range(org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId)
methods
-
NEWEST
public static final StreamMessageId NEWEST
Defines id to receive Stream entries added since method invocation.Used in
RStream.read(org.redisson.api.stream.StreamMultiReadArgs)
,RStream.createGroup(java.lang.String)
methods
-
ALL
public static final StreamMessageId ALL
Defines id to receive all Stream entries.Used in
RStream.read(org.redisson.api.stream.StreamMultiReadArgs)
,RStream.createGroup(java.lang.String)
methods
-
-