|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.environment.processing.WorkRequest
Extend this class and implement doWork() if you need to do blocking disk IO. This is primarily used by Persistence.
Constructor Summary | |
WorkRequest()
Constructor for WorkRequest. |
|
WorkRequest(Continuation c,
SelectorManager sm)
Constructor for WorkRequest. |
Method Summary | |
abstract java.lang.Object |
doWork()
DESCRIBE THE METHOD |
void |
returnError(java.lang.Exception e)
DESCRIBE THE METHOD |
void |
returnResult(java.lang.Object o)
DESCRIBE THE METHOD |
void |
run()
Main processing method for the WorkRequest object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WorkRequest(Continuation c, SelectorManager sm)
c
- DESCRIBE THE PARAMETERsm
- DESCRIBE THE PARAMETERpublic WorkRequest()
Method Detail |
public void returnResult(java.lang.Object o)
o
- DESCRIBE THE PARAMETERpublic void returnError(java.lang.Exception e)
e
- DESCRIBE THE PARAMETERpublic void run()
run
in interface java.lang.Runnable
public abstract java.lang.Object doWork() throws java.lang.Exception
java.lang.Exception
- DESCRIBE THE EXCEPTION
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |