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 Type
    Method
    Description
    void
    asyncCancel(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 the interruptionDesired flag 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 - true if interruption of threads is desired