Package io.vertx.kafka.admin
Class OffsetSpec
java.lang.Object
io.vertx.kafka.admin.OffsetSpec
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOffsetSpec(long spec) ConstructorOffsetSpec(io.vertx.core.json.JsonObject json) Constructor (from JSON representation) -
Method Summary
-
Field Details
-
EARLIEST
-
LATEST
-
-
Constructor Details
-
OffsetSpec
public OffsetSpec(long spec) Constructor- Parameters:
spec- the offset spec Spec.EARLIEST, Spec.LATEST, or a Spec.TIMESTAMP(long) value
-
OffsetSpec
public OffsetSpec(io.vertx.core.json.JsonObject json) Constructor (from JSON representation)- Parameters:
json- JSON representation
-
-
Method Details
-
TIMESTAMP
-
getSpec
public long getSpec()- Returns:
- offset spec
-
setSpec
Set the offset spec- Parameters:
spec- the offset spec- Returns:
- current instance of the class to be fluent
-
toJson
public io.vertx.core.json.JsonObject toJson()Convert object to JSON representation- Returns:
- JSON representation
-
toString
-