Package io.vertx.kafka.client.consumer
Class OffsetAndTimestamp
- java.lang.Object
-
- io.vertx.kafka.client.consumer.OffsetAndTimestamp
-
public class OffsetAndTimestamp extends Object
Represent information related to a Offset with timestamp information
-
-
Constructor Summary
Constructors Constructor Description OffsetAndTimestamp()ConstructorOffsetAndTimestamp(long offset, long timestamp)ConstructorOffsetAndTimestamp(JsonObject json)Constructor (from JSON representation)OffsetAndTimestamp(OffsetAndTimestamp that)Constructor (copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetOffset()longgetTimestamp()OffsetAndTimestampsetOffset(long offset)Set the offsetOffsetAndTimestampsetTimestamp(long timestamp)Set the timestampJsonObjecttoJson()Convert object to JSON representationStringtoString()
-
-
-
Constructor Detail
-
OffsetAndTimestamp
public OffsetAndTimestamp()
Constructor
-
OffsetAndTimestamp
public OffsetAndTimestamp(long offset, long timestamp)Constructor- Parameters:
offset- the offsettimestamp- the timestamp
-
OffsetAndTimestamp
public OffsetAndTimestamp(JsonObject json)
Constructor (from JSON representation)- Parameters:
json- JSON representation
-
OffsetAndTimestamp
public OffsetAndTimestamp(OffsetAndTimestamp that)
Constructor (copy)- Parameters:
that- object to copy
-
-
Method Detail
-
getOffset
public long getOffset()
- Returns:
- the offset
-
setOffset
public OffsetAndTimestamp setOffset(long offset)
Set the offset- Parameters:
offset- the offset- Returns:
- current instance of the class to be fluent
-
getTimestamp
public long getTimestamp()
- Returns:
- the timestamp
-
setTimestamp
public OffsetAndTimestamp setTimestamp(long timestamp)
Set the timestamp- Parameters:
timestamp- the timestamp- Returns:
- current instance of the class to be fluent
-
toJson
public JsonObject toJson()
Convert object to JSON representation- Returns:
- JSON representation
-
-