class JobProcessor
extends java.lang.Object
implements java.lang.Runnable
Scheduler.timer.
This class runs in a separate thread, under the server's context.| Modifier and Type | Field and Description |
|---|---|
private java.util.LinkedList<java.lang.Runnable> |
pendingJobs
The list with the pending jobs.
|
| Constructor and Description |
|---|
JobProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeJob(java.lang.Runnable core)
Execute the given job.
|
void |
run()
Initialize the scheduler and schedule the initial jobs.
|
private final java.util.LinkedList<java.lang.Runnable> pendingJobs
public void run()
queue by the Scheduler.timer.run in interface java.lang.Runnablepublic void executeJob(java.lang.Runnable core)
core - The Runnable instance to execute the job.