JBoss Threads 2.0.0.GA

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.
 

Method Detail

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

JBoss Threads 2.0.0.GA

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.