|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.environment.processing.simple.SimpleProcessor
public class SimpleProcessor
| Constructor Summary | |
|---|---|
SimpleProcessor(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
destroy()
Shuts down the processing thread. |
WorkQueue |
getIOQueue()
|
java.util.Queue<ProcessingRequest> |
getQueue()
|
static void |
main(java.lang.String[] args)
This is a test to make sure the order is correct. |
void |
process(Executable task,
Continuation command,
int priority,
SelectorManager selector,
TimeSource ts,
LogManager log)
Schedules a job for processing on the dedicated 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 workRequest)
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 SimpleProcessor(java.lang.String name)
| Method Detail |
|---|
public void process(Executable task,
Continuation command,
SelectorManager selector,
TimeSource ts,
LogManager log)
process in interface Processortask - The task to run on the processing threadcommand - The command to return the result to once it's done
public void process(Executable task,
Continuation command,
int priority,
SelectorManager selector,
TimeSource ts,
LogManager log)
Processor
process in interface Processortask - 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 void processBlockingIO(WorkRequest workRequest)
Processor
processBlockingIO in interface Processorpublic java.util.Queue<ProcessingRequest> getQueue()
public void destroy()
Processor
destroy in interface Destructabledestroy in interface Processorpublic WorkQueue getIOQueue()
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||