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 Details

    • OffsetAndTimestamp

      public OffsetAndTimestamp()
      Constructor
    • OffsetAndTimestamp

      public OffsetAndTimestamp(long offset, long timestamp)
      Constructor
      Parameters:
      offset - the offset
      timestamp - 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 Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object