public class SpringWorkerFactory extends Object implements Callable<net.greghaines.jesque.worker.WorkerImpl>, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
SpringWorkerFactory(net.greghaines.jesque.Config config,
Collection<String> queues)
Creates a new factory for
SpringWorker that use the provided arguments. |
| Modifier and Type | Method and Description |
|---|---|
net.greghaines.jesque.worker.WorkerImpl |
call()
Create a new
SpringWorker using the arguments provided in the factory constructor. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public SpringWorkerFactory(net.greghaines.jesque.Config config,
Collection<String> queues)
SpringWorker that use the provided arguments.config - used to create a connection to Redisqueues - the list of queues to pollpublic net.greghaines.jesque.worker.WorkerImpl call()
SpringWorker using the arguments provided in the factory constructor.public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2015. All rights reserved.