public class SpringWorker
extends net.greghaines.jesque.worker.WorkerImpl
implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
SpringWorker(net.greghaines.jesque.Config config,
Collection<String> queues) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Convenient destroy method for the Spring container
|
void |
init()
Convenient initialization method for the Spring container
|
boolean |
isProcessingJob() |
protected void |
process(net.greghaines.jesque.Job job,
String curQueue) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
addJobType, addListener, addListener, addQueue, checkJobType, checkJobTypes, checkPaused, checkQueues, createName, end, execute, failMsg, failure, getExceptionHandler, getJobTypes, getName, getQueues, getReconnectAttempts, getWorkerId, isPaused, isShutdown, isThreadNameChangingEnabled, join, key, pauseMsg, poll, recoverFromException, removeAllListeners, removeAllListeners, removeAllQueues, removeJobName, removeJobType, removeListener, removeListener, removeQueue, renameThread, run, setExceptionHandler, setJobTypes, setQueues, setThreadNameChangingEnabled, statusMsg, success, togglePause, toStringpublic SpringWorker(net.greghaines.jesque.Config config,
Collection<String> queues)
config - used to create a connection to Redisqueues - the list of queues to pollpublic boolean isProcessingJob()
isProcessingJob in interface net.greghaines.jesque.worker.JobExecutorisProcessingJob in class net.greghaines.jesque.worker.WorkerImplprotected void process(net.greghaines.jesque.Job job,
String curQueue)
process in class net.greghaines.jesque.worker.WorkerImplpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void init()
public void destroy()
Copyright © 2015. All rights reserved.