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
Deprecated.
Use
XGROUP_LAST_ENTRY for XGROUP CREATE command or
XREAD_NEW_ENTRY for XREAD command. |
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
Deprecated.
|
static StreamEntryID |
XGROUP_LAST_ENTRY
Should be used only with XGROUP CREATE
XGROUP CREATE mystream consumer-group-name $ |
static StreamEntryID |
XREAD_LAST_ENTRY
Should be used only with XREAD
XREAD STREAMS mystream + |
static StreamEntryID |
XREAD_NEW_ENTRY
Should be used only with XREAD
XREAD BLOCK 5000 COUNT 100 STREAMS mystream $ |
static StreamEntryID |
XREADGROUP_UNDELIVERED_ENTRY
Should be used only with XREADGROUP
XREADGROUP GROUP mygroup myconsumer STREAMS mystream > |
| 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 value1public static final StreamEntryID XGROUP_LAST_ENTRY
XGROUP CREATE mystream consumer-group-name $@Deprecated public static final StreamEntryID LAST_ENTRY
XGROUP_LAST_ENTRY for XGROUP CREATE command or
XREAD_NEW_ENTRY for XREAD command.public static final StreamEntryID XREAD_NEW_ENTRY
XREAD BLOCK 5000 COUNT 100 STREAMS mystream $public static final StreamEntryID XREADGROUP_UNDELIVERED_ENTRY
XREADGROUP GROUP mygroup myconsumer STREAMS mystream >
@Deprecated public static final StreamEntryID UNRECEIVED_ENTRY
XREADGROUP_UNDELIVERED_ENTRY.public static final StreamEntryID MINIMUM_ID
public static final StreamEntryID MAXIMUM_ID
public static final StreamEntryID XREAD_LAST_ENTRY
XREAD STREAMS mystream +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.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(StreamEntryID other)
compareTo in interface java.lang.Comparable<StreamEntryID>public long getTime()
public long getSequence()
Copyright © 2025. All rights reserved.