Class OffsetAndMetadata
java.lang.Object
io.vertx.kafka.client.consumer.OffsetAndMetadata
Provide additional metadata when an offset is committed
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorOffsetAndMetadata(long offset, String metadata) ConstructorOffsetAndMetadata(JsonObject json) Constructor (from JSON representation)Constructor (copy) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.longinthashCode()setMetadata(String metadata) Set additional metadata for the offset committedsetOffset(long offset) Set the offset to committoJson()Convert object to JSON representationtoString()
-
Constructor Details
-
OffsetAndMetadata
public OffsetAndMetadata()Constructor -
OffsetAndMetadata
Constructor- Parameters:
offset- offset to commitmetadata- additional metadata with the offset committed
-
OffsetAndMetadata
Constructor (from JSON representation)- Parameters:
json- JSON representation
-
OffsetAndMetadata
Constructor (copy)- Parameters:
that- object to copy
-
-
Method Details
-
getOffset
public long getOffset()- Returns:
- offset to commit
-
setOffset
Set the offset to commit- Parameters:
offset- offset to commit- Returns:
- current instance of the class to be fluent
-
getMetadata
- Returns:
- additional metadata with the offset committed
-
setMetadata
Set additional metadata for the offset committed- Parameters:
metadata- additional metadata- Returns:
- current instance of the class to be fluent
-
toJson
-
equals
-
hashCode
-
toString
-