public class ListOffsetsResultInfo extends Object
Constructor and Description |
---|
ListOffsetsResultInfo(JsonObject json)
Constructor (from JSON representation)
|
ListOffsetsResultInfo(long offset,
long timestamp,
Integer leaderEpoch)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Integer |
getLeaderEpoch() |
long |
getOffset() |
long |
getTimestamp() |
ListOffsetsResultInfo |
setLeaderEpoch(Integer leaderEpoch)
Set the leader epoch
|
ListOffsetsResultInfo |
setOffset(long offset)
Set the offset
|
ListOffsetsResultInfo |
setTimestamp(long timestamp)
Set the timestamp
|
JsonObject |
toJson()
Convert object to JSON representation
|
String |
toString() |
public ListOffsetsResultInfo(long offset, long timestamp, Integer leaderEpoch)
offset
- the offsettimestamp
- the timestampleaderEpoch
- the leader epochpublic ListOffsetsResultInfo(JsonObject json)
json
- JSON representationpublic long getOffset()
public long getTimestamp()
public Integer getLeaderEpoch()
public ListOffsetsResultInfo setOffset(long offset)
offset
- the offsetpublic ListOffsetsResultInfo setTimestamp(long timestamp)
timestamp
- the timestamppublic ListOffsetsResultInfo setLeaderEpoch(Integer leaderEpoch)
leaderEpoch
- the leader epochpublic JsonObject toJson()
Copyright © 2024 Eclipse. All rights reserved.