public class OffsetSpecification extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static OffsetSpecification |
first()
The first available offset in the stream.
|
long |
getOffset() |
short |
getType() |
int |
hashCode() |
boolean |
isOffset() |
boolean |
isTimestamp() |
static OffsetSpecification |
last()
The last chunk of messages in the stream.
|
static OffsetSpecification |
next()
The next offset to be written, that is the end of the stream.
|
static OffsetSpecification |
none()
When the offset specification is not relevant.
|
static OffsetSpecification |
offset(long offset)
A specific offset in the stream.
|
static OffsetSpecification |
timestamp(long timestamp)
Offset of messages stored after the specified timestamp.
|
String |
toString() |
public static OffsetSpecification none()
public static OffsetSpecification first()
If the stream has not been truncated, this means the beginning of the stream (offset 0).
public static OffsetSpecification last()
public static OffsetSpecification next()
public static OffsetSpecification offset(long offset)
The first offset of a non-truncated stream is 0.
offset - public static OffsetSpecification timestamp(long timestamp)
Be aware consumers can receive messages published a bit before the specified timestamp.
timestamp - public boolean isOffset()
public boolean isTimestamp()
public short getType()
public long getOffset()
Copyright © 2024 Broadcom Inc. and/or its subsidiaries. All rights reserved.