public class ErrataCacheDriver extends java.lang.Object implements QueueDriver
| Constructor and Description |
|---|
ErrataCacheDriver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canContinue()
Logic to tell the queue when to stop running
Queues will always stop when there is no more work to do.
|
java.util.List<Task> |
getCandidates()
List of work items to "prime" the queue
|
org.apache.log4j.Logger |
getLogger()
The logger to use for all logging operations
|
int |
getMaxWorkers()
Maximum number of worker threads to run
|
void |
initialize()
Actions that has to be executed, when queue is created
|
QueueWorker |
makeWorker(java.lang.Object workItem)
Create a worker instance to work on a particular work item
|
void |
setLogger(org.apache.log4j.Logger loggerIn)
Set the logger to use for all logging operations
|
public boolean canContinue()
canContinue in interface QueueDriverpublic java.util.List<Task> getCandidates()
getCandidates in interface QueueDriverpublic org.apache.log4j.Logger getLogger()
getLogger in interface QueueDriverpublic void setLogger(org.apache.log4j.Logger loggerIn)
setLogger in interface QueueDriverloggerIn - logger to be setpublic int getMaxWorkers()
getMaxWorkers in interface QueueDriverpublic QueueWorker makeWorker(java.lang.Object workItem)
makeWorker in interface QueueDriverworkItem - object contained in the list returned from getCandidates()public void initialize()
initialize in interface QueueDriver