All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest

public class CancelTasksRequest extends BaseTasksRequest<CancelTasksRequest>
A request to cancel tasks
  • Field Details

  • Constructor Details

    • CancelTasksRequest

      public CancelTasksRequest()
    • CancelTasksRequest

      public CancelTasksRequest(StreamInput in) throws
      Throws:
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class BaseTasksRequest<CancelTasksRequest>
      Throws:
    • match

      public boolean match(Task task)
      Overrides:
      match in class BaseTasksRequest<CancelTasksRequest>
    • setReason

      public  reason)
      Set the reason for canceling the task.
    • getReason

      public  getReason()
      The reason for canceling the task.
    • setWaitForCompletion

      public void setWaitForCompletion(boolean waitForCompletion)
      If true, the request blocks until the cancellation of the task and its descendant tasks is completed. Otherwise, the request can return soon after the cancellation is started. Defaults to false.
    • waitForCompletion

      public boolean waitForCompletion()
    • getDescription

      public  getDescription()
      Description copied from interface: TaskAwareRequest
      Returns optional description of the request to be displayed by the task manager