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 QueueDriver
public java.util.List<Task> getCandidates()
getCandidates
in interface QueueDriver
public org.apache.log4j.Logger getLogger()
getLogger
in interface QueueDriver
public void setLogger(org.apache.log4j.Logger loggerIn)
setLogger
in interface QueueDriver
loggerIn
- logger to be setpublic int getMaxWorkers()
getMaxWorkers
in interface QueueDriver
public QueueWorker makeWorker(java.lang.Object workItem)
makeWorker
in interface QueueDriver
workItem
- object contained in the list returned from getCandidates()public void initialize()
initialize
in interface QueueDriver