|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.util.queue.QueueWorker
public class QueueWorker
| Constructor Summary | |
|---|---|
QueueWorker(Queue queue,
JobHandler handlerObj)
Creates a new instance of QueueWorker |
|
| Method Summary | |
|---|---|
protected void |
addJobHandler(JobHandler handlerObj)
Register a new job handler for jobs. |
static java.lang.String |
getHandlerType(JobHandler handlerObj)
Utility method to standardise JobHandler the type of a job handler |
boolean |
getReadyState()
|
void |
handleAction()
|
void |
runAction()
Get the next job in queue to process |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueueWorker(Queue queue,
JobHandler handlerObj)
| Method Detail |
|---|
protected void addJobHandler(JobHandler handlerObj)
Queue object every time a new job is added to it
public boolean getReadyState()
getReadyState in interface Threadable
public void runAction()
throws AutoMedException
runAction in interface ThreadableAutoMedExceptionpublic void handleAction()
handleAction in interface Threadablepublic static java.lang.String getHandlerType(JobHandler handlerObj)
JobHandler the type of a job handler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||