Class PutWatchRequest

  • All Implemented Interfaces:
    org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.core.RefCounted, org.elasticsearch.tasks.TaskAwareRequest

    public class PutWatchRequest
    extends org.elasticsearch.action.ActionRequest
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest

        org.elasticsearch.transport.TransportRequest.Empty
      • 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>
    • Constructor Summary

      Constructors 
      Constructor Description
      PutWatchRequest()  
      PutWatchRequest​(String watchId, org.elasticsearch.common.bytes.BytesReference body, org.elasticsearch.xcontent.XContentType bodyContentType)  
      PutWatchRequest​(org.elasticsearch.common.io.stream.StreamInput in)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.elasticsearch.common.bytes.BytesReference getBody()  
      org.elasticsearch.xcontent.XContentType getBodyContentType()  
      String getWatchId()  
      void setBody​(org.elasticsearch.common.bytes.BytesReference body)  
      void setBodyContentType​(org.elasticsearch.xcontent.XContentType bodyContentType)  
      void setWatchId​(String watchId)  
      org.elasticsearch.action.ActionRequestValidationException validate()  
      void writeTo​(org.elasticsearch.common.io.stream.StreamOutput out)  
      • Methods inherited from class org.elasticsearch.action.ActionRequest

        getShouldStoreResult
      • Methods inherited from class org.elasticsearch.transport.TransportRequest

        getParentTask, setParentTask, toString
      • Methods inherited from class org.elasticsearch.transport.TransportMessage

        decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
      • Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest

        createTask, getDescription, setParentTask
    • Constructor Detail

      • PutWatchRequest

        public PutWatchRequest()
      • PutWatchRequest

        public PutWatchRequest​(String watchId,
                               org.elasticsearch.common.bytes.BytesReference body,
                               org.elasticsearch.xcontent.XContentType bodyContentType)
      • PutWatchRequest

        public PutWatchRequest​(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
        Overrides:
        writeTo in class org.elasticsearch.action.ActionRequest
        Throws:
        IOException
      • validate

        public org.elasticsearch.action.ActionRequestValidationException validate()
        Specified by:
        validate in class org.elasticsearch.action.ActionRequest
      • getWatchId

        public String getWatchId()
      • setWatchId

        public void setWatchId​(String watchId)
      • getBody

        public org.elasticsearch.common.bytes.BytesReference getBody()
      • setBody

        public void setBody​(org.elasticsearch.common.bytes.BytesReference body)
      • getBodyContentType

        public org.elasticsearch.xcontent.XContentType getBodyContentType()
      • setBodyContentType

        public void setBodyContentType​(org.elasticsearch.xcontent.XContentType bodyContentType)