rice.environment.processing
Class WorkRequest
java.lang.Object
rice.environment.processing.WorkRequest
- All Implemented Interfaces:
- java.lang.Runnable
public abstract class WorkRequest
- extends java.lang.Object
- implements java.lang.Runnable
Extend this class and implement doWork() if you need to do blocking disk IO.
This is primarily used by Persistence.
- Author:
- Jeff Hoye
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkRequest
public WorkRequest(Continuation c,
SelectorManager sm)
WorkRequest
public WorkRequest()
returnResult
public void returnResult(java.lang.Object o)
returnError
public void returnError(java.lang.Exception e)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
doWork
public abstract java.lang.Object doWork()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2001-2005 - Rice Pastry.