Class CancelRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.tasks.CancelRequest

public class CancelRequest extends RequestBase
Cancels a task, if it can be cancelled through an API.
See Also:
  • Field Details

  • Method Details

    • of

    • actions

      public final List<String> actions()
      A comma-separated list of actions that should be cancelled. Leave empty to cancel all.

      API name: actions

    • nodes

      public final List<String> nodes()
      A comma-separated list of node IDs or names to limit the returned information; use _local to return information from the node you're connecting to, leave empty to get information from all nodes

      API name: nodes

    • parentTaskId

      @Nullable public final String parentTaskId()
      Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all.

      API name: parent_task_id

    • taskId

      @Nullable public final String taskId()
      Cancel the task with specified task id (node_id:task_number)

      API name: task_id

    • waitForCompletion

      @Nullable public final Boolean waitForCompletion()
      Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false

      API name: wait_for_completion