/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ package org.opensearch.search.asynchronous.task; import org.opensearch.search.asynchronous.request.SubmitAsynchronousSearchRequest; import org.opensearch.tasks.CancellableTask; import org.opensearch.tasks.TaskId; import java.util.Map; /** * Task storing information about a currently running {@link SubmitAsynchronousSearchRequest}. */ public class SubmitAsynchronousSearchTask extends CancellableTask { public SubmitAsynchronousSearchTask( long id, String type, String action, String description, TaskId parentTaskId, Map headers) { super(id, type, action, description, parentTaskId, headers); } @Override public boolean shouldCancelChildrenOnCancellation() { return true; } }