com.sun.sgs.impl.nio
Class Reactor.AsyncOp<R>
java.lang.Object
java.util.concurrent.FutureTask<R>
com.sun.sgs.impl.nio.Reactor.AsyncOp<R>
- Type Parameters:
R - the result type
- All Implemented Interfaces:
- Runnable, Future<R>, RunnableFuture<R>
- Enclosing class:
- Reactor
static class Reactor.AsyncOp<R>
- extends FutureTask<R>
A FutureTask that can be canceled by a timeout exception.
|
Method Summary |
(package private) void |
timeoutExpired()
Completes this future as if its run() method threw
an AbortedByTimeoutException, unless this future
has already completed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Reactor.AsyncOp
Reactor.AsyncOp(Callable<R> callable)
- Creates a new instance.
- Parameters:
callable - the work to perform when this task is run
timeoutExpired
void timeoutExpired()
- Completes this future as if its
run() method threw
an AbortedByTimeoutException, unless this future
has already completed.
Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved