Class SearchShardTask


public class SearchShardTask extends CancellableTask
Task storing information about a currently running search shard request. See ShardSearchRequest, ShardFetchSearchRequest, ...
  • Constructor Details

  • Method Details

    • shouldCancelChildrenOnCancellation

      public boolean shouldCancelChildrenOnCancellation()
      Description copied from class: CancellableTask
      Returns whether this task's children need to be cancelled too. true is a reasonable response even for tasks that have no children, since child tasks might be added in future and it'd be easy to forget to update this, but returning false saves a bit of computation in the task manager.
      Overrides:
      shouldCancelChildrenOnCancellation in class CancellableTask