|
||||||||||
| 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
| Field Summary | |
|---|---|
protected BlockingIOThread |
bioThread
|
protected PriorityBlockingQueue<ProcessingRequest> |
QUEUE
|
protected ProcessingThread |
THREAD
|
protected WorkQueue |
workQueue
|
| Constructor Summary | |
|---|---|
SimpleProcessor(String name)
|
|
| Method Summary | ||
|---|---|---|
void |
destroy()
Shuts down the processing thread. |
|
WorkQueue |
getIOQueue()
|
|
Queue<ProcessingRequest> |
getQueue()
|
|
static void |
main(String[] args)
This is a test to make sure the order is correct. |
|
|
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 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 |
| Field Detail |
|---|
protected PriorityBlockingQueue<ProcessingRequest> QUEUE
protected ProcessingThread THREAD
protected WorkQueue workQueue
protected BlockingIOThread bioThread
| Constructor Detail |
|---|
public SimpleProcessor(String name)
| Method Detail |
|---|
public <R,E extends Exception> Cancellable process(Executable<R,E> task,
Continuation<R,E> 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 <R,E extends Exception> Cancellable process(Executable<R,E> task,
Continuation<R,E> 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 Cancellable processBlockingIO(WorkRequest workRequest)
Processor
processBlockingIO in interface Processorpublic Queue<ProcessingRequest> getQueue()
public void destroy()
Processor
destroy in interface Destructabledestroy in interface Processorpublic WorkQueue getIOQueue()
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||