|
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.sim.SimProcessor
public class SimProcessor
Constructor Summary | |
---|---|
SimProcessor(SelectorManager selector)
|
Method Summary | ||
---|---|---|
void |
destroy()
Shuts down the processing thread. |
|
|
process(Executable<R,E> task,
Continuation<R,E> command,
int priority,
SelectorManager selector,
TimeSource ts,
LogManager log)
Schedules a job for processing on the dedicated processing thread. |
|
|
process(Executable<R,E> task,
Continuation<R,E> command,
SelectorManager selector,
TimeSource ts,
LogManager log)
Schedules a job for processing on the dedicated processing thread. |
|
Cancellable |
processBlockingIO(WorkRequest request)
Schedules a different type of task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimProcessor(SelectorManager selector)
Method Detail |
---|
public <R,E extends java.lang.Exception> Cancellable process(Executable<R,E> task, Continuation<R,E> command, SelectorManager selector, TimeSource ts, LogManager log)
Processor
process
in interface Processor
task
- The task to run on the processing threadcommand
- The command to return the result to once it's donepublic <R,E extends java.lang.Exception> Cancellable process(Executable<R,E> task, Continuation<R,E> command, int priority, SelectorManager selector, TimeSource ts, LogManager log)
Processor
process
in interface Processor
task
- The task to run on the processing threadcommand
- The command to return the result to once it's donepriority
- lower number is higher priority, 0 is default priority, and negative numbers are high prioritypublic Cancellable processBlockingIO(WorkRequest request)
Processor
processBlockingIO
in interface Processor
public void destroy()
Processor
destroy
in interface Destructable
destroy
in interface Processor
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |