AbstractCancels tasks on this executor.
This does not permanently disable the executor. Use shutdown() for that.
Optionalreason: unknownOptional reason for cancellation
Cancels tasks on this executor.
This does not permanently disable the executor. Use shutdown() for that.
Cancels tasks on this executor.
This does not permanently disable the executor. Use shutdown() for that.
Optional reason for cancellation
Cancels tasks on this executor.
This does not permanently disable the executor. Use shutdown() for that.
OptionalreasonOrOptions: unknownOptionalmaybeOptions: TaskCancelOptionsProtectedcancelOptionalreason: unknownProtectedcancelHandles selective cancellation requests (e.g., by task kind). Default behaviour upgrades to a full cancellation.
ProtectedcheckAbstractexecProtectedgetReturns true if this executor has been permanently shut down. Kept for backward compatibility.
ProtectedisProtected AbstractonHook for subclasses to cancel current and queued tasks.
Called whenever cancel() without filters is invoked.
Optionalreason: unknownProtectedonHook for subclasses to perform permanent shutdown cleanup. Default behavior first cancels all tasks. Subclasses can extend this to stop internal workers/timers.
Optionalreason: unknownThe shutdown reason
Optionalreason: unknown
Base class for task executors with two lifecycle controls:
cancel(...)for task cancellation (executor remains usable)shutdown(...)for permanent executor shutdownSubclasses should:
checkShutdown()at the start ofexec()onCancelAll(reason)to cancel queued/running tasksonShutdown(reason)for permanent cleanup