Package io.vertx.kafka.admin
Class ListOffsetsResultInfo
- java.lang.Object
-
- io.vertx.kafka.admin.ListOffsetsResultInfo
-
public class ListOffsetsResultInfo extends Object
-
-
Constructor Summary
Constructors Constructor Description ListOffsetsResultInfo(long offset, long timestamp, Integer leaderEpoch)
ConstructorListOffsetsResultInfo(JsonObject json)
Constructor (from JSON representation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getLeaderEpoch()
long
getOffset()
long
getTimestamp()
ListOffsetsResultInfo
setLeaderEpoch(Integer leaderEpoch)
Set the leader epochListOffsetsResultInfo
setOffset(long offset)
Set the offsetListOffsetsResultInfo
setTimestamp(long timestamp)
Set the timestampJsonObject
toJson()
Convert object to JSON representationString
toString()
-
-
-
Constructor Detail
-
ListOffsetsResultInfo
public ListOffsetsResultInfo(long offset, long timestamp, Integer leaderEpoch)
Constructor- Parameters:
offset
- the offsettimestamp
- the timestampleaderEpoch
- the leader epoch
-
ListOffsetsResultInfo
public ListOffsetsResultInfo(JsonObject json)
Constructor (from JSON representation)- Parameters:
json
- JSON representation
-
-
Method Detail
-
getOffset
public long getOffset()
- Returns:
- the offset
-
getTimestamp
public long getTimestamp()
- Returns:
- the timestamp
-
getLeaderEpoch
public Integer getLeaderEpoch()
- Returns:
- the leader epoch
-
setOffset
public ListOffsetsResultInfo setOffset(long offset)
Set the offset- Parameters:
offset
- the offset- Returns:
- current instance of the class to be fluent
-
setTimestamp
public ListOffsetsResultInfo setTimestamp(long timestamp)
Set the timestamp- Parameters:
timestamp
- the timestamp- Returns:
- current instance of the class to be fluent
-
setLeaderEpoch
public ListOffsetsResultInfo setLeaderEpoch(Integer leaderEpoch)
Set the leader epoch- Parameters:
leaderEpoch
- the leader epoch- Returns:
- current instance of the class to be fluent
-
toJson
public JsonObject toJson()
Convert object to JSON representation- Returns:
- JSON representation
-
-