public class ListOffsetsResultInfo extends Object
| Constructor and Description | 
|---|
ListOffsetsResultInfo(JsonObject json)
Constructor (from JSON representation) 
 | 
ListOffsetsResultInfo(long offset,
                     long timestamp,
                     Optional<Integer> leaderEpoch)
Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Optional<Integer> | 
getLeaderEpoch()  | 
long | 
getOffset()  | 
long | 
getTimestamp()  | 
ListOffsetsResultInfo | 
setLeaderEpoch(Optional<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,
                             Optional<Integer> leaderEpoch)
offset - the offsettimestamp - the timestampleaderEpoch - the leader epochpublic ListOffsetsResultInfo(JsonObject json)
json - JSON representationpublic long getOffset()
public long getTimestamp()
public ListOffsetsResultInfo setOffset(long offset)
offset - the offsetpublic ListOffsetsResultInfo setTimestamp(long timestamp)
timestamp - the timestamppublic ListOffsetsResultInfo setLeaderEpoch(Optional<Integer> leaderEpoch)
leaderEpoch - the leader epochpublic JsonObject toJson()
Copyright © 2020 Eclipse. All rights reserved.