public class OffsetAndTimestamp extends Object
Constructor and Description |
---|
OffsetAndTimestamp()
Constructor
|
OffsetAndTimestamp(JsonObject json)
Constructor (from JSON representation)
|
OffsetAndTimestamp(long offset,
long timestamp)
Constructor
|
OffsetAndTimestamp(OffsetAndTimestamp that)
Constructor (copy)
|
Modifier and Type | Method and Description |
---|---|
long |
getOffset() |
long |
getTimestamp() |
OffsetAndTimestamp |
setOffset(long offset)
Set the offset
|
OffsetAndTimestamp |
setTimestamp(long timestamp)
Set the timestamp
|
JsonObject |
toJson()
Convert object to JSON representation
|
String |
toString() |
public OffsetAndTimestamp()
public OffsetAndTimestamp(long offset, long timestamp)
offset
- the offsettimestamp
- the timestamppublic OffsetAndTimestamp(JsonObject json)
json
- JSON representationpublic OffsetAndTimestamp(OffsetAndTimestamp that)
that
- object to copypublic long getOffset()
public OffsetAndTimestamp setOffset(long offset)
offset
- the offsetpublic long getTimestamp()
public OffsetAndTimestamp setTimestamp(long timestamp)
timestamp
- the timestamppublic JsonObject toJson()
Copyright © 2021 Eclipse. All rights reserved.