Class CancelReindexRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.CancelReindexRequest
Cancel a reindex task.
Cancel an ongoing reindex task. If wait_for_completion is
true (the default), the response contains the final task state
after cancellation. If wait_for_completion is
false, the response contains only
acknowledged: true.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Endpoint<CancelReindexRequest,CancelReindexResponse, ErrorResponse> Endpoint "cancel_reindex". -
Method Summary
Modifier and TypeMethodDescriptionstatic CancelReindexRequestrebuild()final StringtaskId()Required - The ID of the reindex task to cancel.final BooleanIftrue(the default), the request blocks until the cancellation is complete and returns the final task state.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "cancel_reindex".
-
-
Method Details
-
of
public static CancelReindexRequest of(Function<CancelReindexRequest.Builder, ObjectBuilder<CancelReindexRequest>> fn) -
taskId
Required - The ID of the reindex task to cancel.API name:
task_id -
waitForCompletion
Iftrue(the default), the request blocks until the cancellation is complete and returns the final task state. Iffalse, the request returns immediately withacknowledged: true.API name:
wait_for_completion -
rebuild
- Returns:
- New
CancelReindexRequest.Builderinitialized with field values of this instance
-