Package redis.clients.jedis
Class StreamEntryID
- java.lang.Object
-
- redis.clients.jedis.StreamEntryID
-
- All Implemented Interfaces:
Serializable
,Comparable<StreamEntryID>
public class StreamEntryID extends Object implements Comparable<StreamEntryID>, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StreamEntryID
LAST_ENTRY
Should be used only with XGROUP CREATEXGROUP CREATE mystream consumer-group-name $
static StreamEntryID
NEW_ENTRY
Should be used only with XADDXADD mystream * field1 value1
static StreamEntryID
UNRECEIVED_ENTRY
Should be used only with XREADGROUPXREADGROUP $GroupName $ConsumerName BLOCK 2000 COUNT 10 STREAMS mystream >
-
Constructor Summary
Constructors Constructor Description StreamEntryID()
StreamEntryID(long time, long sequence)
StreamEntryID(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(StreamEntryID other)
boolean
equals(Object obj)
long
getSequence()
long
getTime()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
NEW_ENTRY
public static final StreamEntryID NEW_ENTRY
Should be used only with XADDXADD mystream * field1 value1
-
LAST_ENTRY
public static final StreamEntryID LAST_ENTRY
Should be used only with XGROUP CREATEXGROUP CREATE mystream consumer-group-name $
-
UNRECEIVED_ENTRY
public static final StreamEntryID UNRECEIVED_ENTRY
Should be used only with XREADGROUPXREADGROUP $GroupName $ConsumerName BLOCK 2000 COUNT 10 STREAMS mystream >
-
-
Constructor Detail
-
StreamEntryID
public StreamEntryID()
-
StreamEntryID
public StreamEntryID(String id)
-
StreamEntryID
public StreamEntryID(long time, long sequence)
-
-
Method Detail
-
compareTo
public int compareTo(StreamEntryID other)
- Specified by:
compareTo
in interfaceComparable<StreamEntryID>
-
getTime
public long getTime()
-
getSequence
public long getSequence()
-
-