rice
Class Continuation.ExternalRunnable
java.lang.Object
rice.Continuation.ExternalContinuationRunnable
rice.Continuation.ExternalRunnable
- All Implemented Interfaces:
- Runnable
- Enclosing interface:
- Continuation<R,E extends Exception>
public abstract static class Continuation.ExternalRunnable
- extends Continuation.ExternalContinuationRunnable
This class is used when you want to run some task on the selector thread
and wait for it to return its result. Override execute() to perform the
operation and then use invoke to schedule its operation. The current
thread will block until the operation returns a result or an exception.
- Author:
- jstewart
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Continuation.ExternalRunnable
public Continuation.ExternalRunnable()
execute
protected abstract Object execute()
throws Exception
- Throws:
Exception
execute
protected void execute(Continuation c)
throws Exception
- Specified by:
execute in class Continuation.ExternalContinuationRunnable
- Throws:
Exception
Copyright © 2010. All Rights Reserved.