Package io.vertx.kafka.admin
Class ListOffsetsResultInfo
java.lang.Object
io.vertx.kafka.admin.ListOffsetsResultInfo
-
Constructor Summary
ConstructorsConstructorDescriptionListOffsetsResultInfo(long offset, long timestamp, Integer leaderEpoch) ConstructorConstructor (from JSON representation) -
Method Summary
Modifier and TypeMethodDescriptionlonglongsetLeaderEpoch(Integer leaderEpoch) Set the leader epochsetOffset(long offset) Set the offsetsetTimestamp(long timestamp) Set the timestamptoJson()Convert object to JSON representationtoString()
-
Constructor Details
-
ListOffsetsResultInfo
Constructor- Parameters:
offset- the offsettimestamp- the timestampleaderEpoch- the leader epoch
-
ListOffsetsResultInfo
Constructor (from JSON representation)- Parameters:
json- JSON representation
-
-
Method Details
-
getOffset
public long getOffset()- Returns:
- the offset
-
getTimestamp
public long getTimestamp()- Returns:
- the timestamp
-
getLeaderEpoch
- Returns:
- the leader epoch
-
setOffset
Set the offset- Parameters:
offset- the offset- Returns:
- current instance of the class to be fluent
-
setTimestamp
Set the timestamp- Parameters:
timestamp- the timestamp- Returns:
- current instance of the class to be fluent
-
setLeaderEpoch
Set the leader epoch- Parameters:
leaderEpoch- the leader epoch- Returns:
- current instance of the class to be fluent
-
toJson
Convert object to JSON representation- Returns:
- JSON representation
-
toString
-