Interface AsyncCancellable
- All Known Subinterfaces:
AsyncFuture<T>
- All Known Implementing Classes:
AsyncFutureTask
public interface AsyncCancellable
An interface which supports asynchronous cancellation.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptionvoidasyncCancel(boolean interruptionDesired) Handle an asynchronous cancellation.
-
Method Details
-
asyncCancel
void asyncCancel(boolean interruptionDesired) Handle an asynchronous cancellation. Does not block, and may be called more than once; in particular, this method may be re-invoked to set theinterruptionDesiredflag even if it has already been called without that flag set before. Otherwise, this method is idempotent, and thus may be called more than once without additional effect.- Parameters:
interruptionDesired-trueif interruption of threads is desired
-