public final class ReadOffset extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static ReadOffset |
from(RecordId offset)
Read all arriving elements from the stream starting at
RecordId. |
static ReadOffset |
from(String offset)
Read all arriving elements from the stream starting at
offset. |
String |
getOffset() |
int |
hashCode() |
static ReadOffset |
lastConsumed()
Read all new arriving elements with ids greater than the last one consumed by the consumer group.
|
static ReadOffset |
latest()
Read from the latest offset.
|
String |
toString() |
public static ReadOffset latest()
public static ReadOffset lastConsumed()
ReadOffset object without a specific offset.public static ReadOffset from(String offset)
offset.offset - the stream offset.ReadOffset starting at offset.public static ReadOffset from(RecordId offset)
RecordId. Using a
auto-generated RecordId returns the latest() read offset.offset - the stream offset.ReadOffset starting at RecordId.public String getOffset()
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.