- All Known Implementing Classes:
public interface TaskAbortStrategyA strategy to abort a running task.
The abort strategy does not know what sort of task it needs to abort. It is up to the implementation to handle all the logic.
Note, the abort must ensure that all open resources are released in order to avoid deadlocks.
For a common case, think about a HTTP request that needs to be stopped if it takes too long.
- Rutger Lubbers, Paul Klos