Class OffsetSpec


  • public class OffsetSpec
    extends Object
    • Constructor Detail

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

      • 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