Class OffsetSpec

java.lang.Object
io.vertx.kafka.admin.OffsetSpec

public class OffsetSpec extends Object
  • Field Details

  • 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(JsonObject json)
      Constructor (from JSON representation)
      Parameters:
      json - JSON representation
  • Method Details

    • TIMESTAMP

      public static final OffsetSpec TIMESTAMP(long timestamp)
    • getSpec

      public long getSpec()
      Returns:
      offset spec
    • setSpec

      public OffsetSpec setSpec(long spec)
      Set the offset spec
      Parameters:
      spec - the offset spec
      Returns:
      current instance of the class to be fluent
    • toJson

      public JsonObject toJson()
      Convert object to JSON representation
      Returns:
      JSON representation
    • toString

      public String toString()
      Overrides:
      toString in class Object