public class StreamEntryID extends java.lang.Object implements java.lang.Comparable<StreamEntryID>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static StreamEntryID |
LAST_ENTRY
Should be used only with XGROUP CREATE
XGROUP CREATE mystream consumer-group-name $
|
static StreamEntryID |
MAXIMUM_ID
Can be used in XRANGE, XREVRANGE and XPENDING commands.
|
static StreamEntryID |
MINIMUM_ID
Can be used in XRANGE, XREVRANGE and XPENDING commands.
|
static StreamEntryID |
NEW_ENTRY
Should be used only with XADD
XADD mystream * field1 value1
|
static StreamEntryID |
UNRECEIVED_ENTRY
Should be used only with XREADGROUP
|
Constructor and Description |
---|
StreamEntryID() |
StreamEntryID(byte[] id) |
StreamEntryID(long time) |
StreamEntryID(long time,
long sequence) |
StreamEntryID(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(StreamEntryID other) |
boolean |
equals(java.lang.Object obj) |
long |
getSequence() |
long |
getTime() |
int |
hashCode() |
java.lang.String |
toString() |
public static final StreamEntryID NEW_ENTRY
XADD mystream * field1 value1
public static final StreamEntryID LAST_ENTRY
XGROUP CREATE mystream consumer-group-name $
public static final StreamEntryID UNRECEIVED_ENTRY
XREADGROUP $GroupName $ConsumerName BLOCK 2000 COUNT 10 STREAMS mystream >
public static final StreamEntryID MINIMUM_ID
public static final StreamEntryID MAXIMUM_ID
public StreamEntryID()
public StreamEntryID(byte[] id)
public StreamEntryID(java.lang.String id)
public StreamEntryID(long time)
public StreamEntryID(long time, long sequence)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(StreamEntryID other)
compareTo
in interface java.lang.Comparable<StreamEntryID>
public long getTime()
public long getSequence()
Copyright © 2023. All rights reserved.