public class StreamEntryID extends Object implements Comparable<StreamEntryID>, 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
|
| Constructor and Description |
|---|
StreamEntryID() |
StreamEntryID(byte[] id) |
StreamEntryID(long time) |
StreamEntryID(long time,
long sequence) |
StreamEntryID(String id) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(StreamEntryID other) |
boolean |
equals(Object obj) |
long |
getSequence() |
long |
getTime() |
int |
hashCode() |
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(String id)
public StreamEntryID(long time)
public StreamEntryID(long time,
long sequence)
public int compareTo(StreamEntryID other)
compareTo in interface Comparable<StreamEntryID>public long getTime()
public long getSequence()
Copyright © 2024. All rights reserved.