public class OffsetSpec extends Object
Modifier and Type | Field and Description |
---|---|
static OffsetSpec |
EARLIEST |
static OffsetSpec |
LATEST |
Constructor and Description |
---|
OffsetSpec(JsonObject json)
Constructor (from JSON representation)
|
OffsetSpec(long spec)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getSpec() |
OffsetSpec |
setSpec(long spec)
Set the offset spec
|
static OffsetSpec |
TIMESTAMP(long timestamp) |
JsonObject |
toJson()
Convert object to JSON representation
|
String |
toString() |
public static final OffsetSpec EARLIEST
public static final OffsetSpec LATEST
public OffsetSpec(long spec)
spec
- the offset spec Spec.EARLIEST, Spec.LATEST, or a Spec.TIMESTAMP(long) valuepublic OffsetSpec(JsonObject json)
json
- JSON representationpublic static final OffsetSpec TIMESTAMP(long timestamp)
public long getSpec()
public OffsetSpec setSpec(long spec)
spec
- the offset specpublic JsonObject toJson()
Copyright © 2024 Eclipse. All rights reserved.