Class QueryWatch

All Implemented Interfaces:

public class QueryWatch
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static QueryWatch of​(java.util.function.Function<QueryWatch.Builder,​ObjectBuilder<QueryWatch>> fn)
    • id

      public final java.lang.String id()
      Required - API name: _id
    • status

      @Nullable public final WatchStatus status()
      API name: status
    • watch

      @Nullable public final Watch watch()
      API name: watch
    • primaryTerm

      @Nullable public final java.lang.Integer primaryTerm()
      API name: _primary_term
    • seqNo

      @Nullable public final java.lang.Long seqNo()
      API name: _seq_no
    • serialize

      public void serialize​( generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​( generator, JsonpMapper mapper)
    • setupQueryWatchDeserializer

      protected static void setupQueryWatchDeserializer​(ObjectDeserializer<QueryWatch.Builder> op)