|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.greghaines.jesque.worker.WorkerImpl
net.lariverosc.jesquespring.SpringWorker
public class SpringWorker
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.greghaines.jesque.worker.WorkerImpl |
|---|
net.greghaines.jesque.worker.WorkerImpl.WorkerState |
| Field Summary |
|---|
| Fields inherited from class net.greghaines.jesque.worker.WorkerImpl |
|---|
emptyQueueSleepTime, jedis, listenerDelegate, namespace, queueNames, state |
| Fields inherited from interface net.greghaines.jesque.worker.Worker |
|---|
ALL_QUEUES |
| Constructor Summary | |
|---|---|
SpringWorker(net.greghaines.jesque.Config config,
Collection<String> queues)
|
|
| Method Summary | |
|---|---|
void |
destroy()
Convenient destroy method for the Spring container |
void |
init()
Convenient initialization method for the Spring container |
protected void |
process(net.greghaines.jesque.Job job,
String curQueue)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
| Methods inherited from class net.greghaines.jesque.worker.WorkerImpl |
|---|
addJobType, addListener, addListener, addQueue, checkJobTypes, checkPaused, checkQueues, createName, end, execute, failMsg, failure, getExceptionHandler, getJobTypes, getName, getQueues, getReconnectAttempts, getWorkerId, isPaused, isShutdown, isThreadNameChangingEnabled, join, key, poll, recoverFromException, removeAllListeners, removeAllListeners, removeAllQueues, removeJobName, removeJobType, removeListener, removeListener, removeQueue, renameThread, run, setExceptionHandler, setJobTypes, setQueues, setThreadNameChangingEnabled, statusMsg, success, togglePause, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpringWorker(net.greghaines.jesque.Config config,
Collection<String> queues)
config - used to create a connection to Redisqueues - the list of queues to poll| Method Detail |
|---|
protected void process(net.greghaines.jesque.Job job,
String curQueue)
process in class net.greghaines.jesque.worker.WorkerImpl
public 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||