public class DefaultFailQueueStrategy extends Object implements FailQueueStrategy
| Constructor and Description |
|---|
DefaultFailQueueStrategy(String namespace)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFailQueueKey(Throwable thrwbl,
Job job,
String curQueue)
Determine the key for the failure queue.
|
int |
getFailQueueMaxItems(String curQueue)
Determine the max number of items to keep in the failure queue.
|
public DefaultFailQueueStrategy(String namespace)
namespace - the Redis namespace.public String getFailQueueKey(Throwable thrwbl, Job job, String curQueue)
getFailQueueKey in interface FailQueueStrategythrwbl - the Throwable that occurredjob - the Job that failedcurQueue - the queue the Job came frompublic int getFailQueueMaxItems(String curQueue)
getFailQueueMaxItems in interface FailQueueStrategycurQueue - the queue the Job came fromCopyright © 2011–2019. All rights reserved.