|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Worker
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 |
---|
int getJobCount()
void resetJobCount()
void setRunning(boolean status)
void setMonitor(WorkerMonitor monitor)
void setJob(Runnable job, AccessControlContext context)
void setJob(Runnable job)
Runnable getJob()
void start()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |