ePOST API

rice
Class Continuation.ExternalRunnable

java.lang.Object
  extended by rice.Continuation.ExternalContinuationRunnable
      extended by rice.Continuation.ExternalRunnable
All Implemented Interfaces:
java.lang.Runnable
Enclosing interface:
Continuation

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

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

Continuation.ExternalRunnable

public Continuation.ExternalRunnable()
Method Detail

execute

protected abstract java.lang.Object execute()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

execute

protected void execute(Continuation c)
                throws java.lang.Exception
Specified by:
execute in class Continuation.ExternalContinuationRunnable
Throws:
java.lang.Exception

ePOST API

Copyright © 2001-2005 - Rice Pastry.