|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Worker thread processes jobs and notify its WorkerMonitor when completed. When no work is available, the worker simply sets itself in a waiting mode pending reactivation by the WorkerMonitor
Method Summary | |
Runnable |
getJob()
Retrieves the job to execute |
int |
getJobCount()
|
void |
resetJobCount()
Reset the processed job counter |
void |
setJob(Runnable job)
Sets the job to execute |
void |
setJob(Runnable job,
AccessControlContext context)
Sets the job to execute in security context |
void |
setMonitor(WorkerMonitor monitor)
Sets the moitor of this worker |
void |
setRunning(boolean status)
Sets the running status of this Worker. |
void |
start()
|
Method Detail |
public int getJobCount()
public void resetJobCount()
public void setRunning(boolean status)
public void setMonitor(WorkerMonitor monitor)
public void setJob(Runnable job, AccessControlContext context)
public void setJob(Runnable job)
public Runnable getJob()
public void start()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |