|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.Continuation.ExternalContinuationRunnable rice.Continuation.ExternalRunnable
public abstract static class Continuation.ExternalRunnable
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.
Constructor Summary | |
---|---|
Continuation.ExternalRunnable()
|
Method Summary | |
---|---|
protected abstract java.lang.Object |
execute()
|
protected void |
execute(Continuation c)
|
Methods inherited from class rice.Continuation.ExternalContinuationRunnable |
---|
invoke, invoke, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Continuation.ExternalRunnable()
Method Detail |
---|
protected abstract java.lang.Object execute() throws java.lang.Exception
java.lang.Exception
protected void execute(Continuation c) throws java.lang.Exception
execute
in class Continuation.ExternalContinuationRunnable
java.lang.Exception
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |