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 StreamEntryIDLAST_ENTRYShould be used only with XGROUP CREATEXGROUP CREATE mystream consumer-group-name $static StreamEntryIDNEW_ENTRYShould be used only with XADDXADD mystream * field1 value1static StreamEntryIDUNRECEIVED_ENTRYShould 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 intcompareTo(StreamEntryID other)booleanequals(Object obj)longgetSequence()longgetTime()inthashCode()StringtoString()
-
-
-
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:
compareToin interfaceComparable<StreamEntryID>
-
getTime
public long getTime()
-
getSequence
public long getSequence()
-
-