org.jboss.threads
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 |
void |
asyncCancel(boolean interruptionDesired)
Handle an asynchronous cancellation. |
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
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.