public class StreamEntryID extends Object implements Comparable<StreamEntryID>, 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 |
NEW_ENTRY
Should be used only with XADD
XADD mystream * field1 value1
|
static StreamEntryID |
UNRECEIVED_ENTRY
Should be used only with XREADGROUP
XREADGROUP $GroupName $ConsumerName BLOCK 2000 COUNT 10 STREAMS mystream >
|
Constructor and Description |
---|
StreamEntryID() |
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 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 StreamEntryID()
public StreamEntryID(String id)
public StreamEntryID(long time, long sequence)
public int compareTo(StreamEntryID other)
compareTo
in interface Comparable<StreamEntryID>
public long getTime()
public long getSequence()
Copyright © 2022. All rights reserved.