Class GetWatchResponse

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

public class GetWatchResponse
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    GetWatchResponse​(java.lang.String id)
    Ctor for missing watch
    GetWatchResponse​(java.lang.String id, long version, long seqNo, long primaryTerm, WatchStatus status, org.elasticsearch.common.bytes.BytesReference source, org.elasticsearch.common.xcontent.XContentType xContentType)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    static GetWatchResponse fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)  
    org.elasticsearch.common.xcontent.XContentType getContentType()
    Returns the XContentType of the source
    java.lang.String getId()  
    long getPrimaryTerm()  
    long getSeqNo()  
    org.elasticsearch.common.bytes.BytesReference getSource()
    Returns the serialized watch
    java.util.Map<java.lang.String,​java.lang.Object> getSourceAsMap()
    Returns the source as a map
    WatchStatus getStatus()  
    long getVersion()  
    int hashCode()  
    boolean isFound()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GetWatchResponse

      public GetWatchResponse​(java.lang.String id)
      Ctor for missing watch
    • GetWatchResponse

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

    • getId

      public java.lang.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.common.xcontent.XContentType getContentType()
      Returns the XContentType of the source
    • getSource

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

      public java.util.Map<java.lang.String,​java.lang.Object> getSourceAsMap()
      Returns the source as a map
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

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

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