Class GetWatchResponse

java.lang.Object
org.elasticsearch.client.watcher.GetWatchResponse

public class GetWatchResponse extends Object
  • Constructor Details

    • GetWatchResponse

      public GetWatchResponse(String id)
      Ctor for missing watch
    • GetWatchResponse

      public GetWatchResponse(String id, long version, long seqNo, long primaryTerm, WatchStatus status, org.elasticsearch.common.bytes.BytesReference source, org.elasticsearch.xcontent.XContentType xContentType)
  • Method Details

    • getId

      public String getId()
    • getVersion

      public long getVersion()
    • getSeqNo

      public long getSeqNo()
    • getPrimaryTerm

      public long getPrimaryTerm()
    • isFound

      public boolean isFound()
    • getStatus

      public WatchStatus getStatus()
    • getContentType

      public org.elasticsearch.xcontent.XContentType getContentType()
      Returns the XContentType of the source
    • getSource

      public org.elasticsearch.common.bytes.BytesReference getSource()
      Returns the serialized watch
    • getSourceAsMap

      public Map<String,Object> getSourceAsMap()
      Returns the source as a map
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • fromXContent

      public static GetWatchResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException