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 StreamMessageIdALLDefines id to receive all Stream entries.static StreamMessageIdAUTO_GENERATEDDefines auto-generated id.static StreamMessageIdMAXDefines maximal id.static StreamMessageIdMINDefines minimal id.static StreamMessageIdNEVER_DELIVEREDDefines id to receive Stream entries never delivered to any other consumer.static StreamMessageIdNEWESTDefines 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 booleanequals(Object obj)longgetId0()Returns first part of IDlonggetId1()Returns second part of IDinthashCode()StringtoString()
-
-
-
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
-
-