Class GetWatchResponse

  • All Implemented Interfaces:
    org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.core.RefCounted, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

    public class GetWatchResponse
    extends org.elasticsearch.action.ActionResponse
    implements org.elasticsearch.xcontent.ToXContentObject
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse

        org.elasticsearch.action.ActionResponse.Empty
      • Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

        org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
      • Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

        org.elasticsearch.common.io.stream.Writeable.Reader<V extends Object>, org.elasticsearch.common.io.stream.Writeable.Writer<V extends Object>
    • Field Summary

      • Fields inherited from interface org.elasticsearch.xcontent.ToXContent

        EMPTY_PARAMS
    • Constructor Detail

      • GetWatchResponse

        public GetWatchResponse()
      • GetWatchResponse

        public GetWatchResponse​(String tenant,
                                String id,
                                boolean exists)
      • GetWatchResponse

        public GetWatchResponse​(String tenant,
                                String id,
                                boolean exists,
                                long version,
                                long seqNo,
                                long primaryTerm,
                                org.elasticsearch.common.bytes.BytesReference source)
      • GetWatchResponse

        public GetWatchResponse​(String tenant,
                                org.elasticsearch.action.get.GetResponse getResponse)
      • GetWatchResponse

        public GetWatchResponse​(org.elasticsearch.common.io.stream.StreamInput in)
                         throws IOException
        Throws:
        IOException
    • Method Detail

      • writeTo

        public void writeTo​(org.elasticsearch.common.io.stream.StreamOutput out)
                     throws IOException
        Specified by:
        writeTo in interface org.elasticsearch.common.io.stream.Writeable
        Throws:
        IOException
      • toXContent

        public org.elasticsearch.xcontent.XContentBuilder toXContent​(org.elasticsearch.xcontent.XContentBuilder builder,
                                                                     org.elasticsearch.xcontent.ToXContent.Params params)
                                                              throws IOException
        Specified by:
        toXContent in interface org.elasticsearch.xcontent.ToXContent
        Throws:
        IOException
      • getId

        public String getId()
      • setId

        public void setId​(String id)
      • isExists

        public boolean isExists()
      • setExists

        public void setExists​(boolean exists)
      • getVersion

        public long getVersion()
      • setVersion

        public void setVersion​(long version)
      • getSeqNo

        public long getSeqNo()
      • setSeqNo

        public void setSeqNo​(long seqNo)
      • getPrimaryTerm

        public long getPrimaryTerm()
      • setPrimaryTerm

        public void setPrimaryTerm​(long primaryTerm)
      • getSource

        public org.elasticsearch.common.bytes.BytesReference getSource()
      • setSource

        public void setSource​(org.elasticsearch.common.bytes.BytesReference source)
      • getTenant

        public String getTenant()
      • setTenant

        public void setTenant​(String tenant)