|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Processor
Provides a mechanism to do time consuming tasks off of FreePastry's selecto thread. Usually acquired by calling environment.getProcessor().
Method Summary | |
---|---|
void |
destroy()
Shuts down the processing thread. |
void |
process(Executable task,
Continuation command,
SelectorManager selector,
TimeSource ts,
LogManager log)
Schedules a job for processing on the dedicated processing thread. |
void |
processBlockingIO(WorkRequest request)
Schedules a different type of task. |
Method Detail |
---|
void process(Executable task, Continuation command, SelectorManager selector, TimeSource ts, LogManager log)
task
- The task to run on the processing threadcommand
- The command to return the result to once it's donevoid processBlockingIO(WorkRequest request)
request
- void destroy()
destroy
in interface Destructable
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |