A B C D E F G H I J K L M N O P Q R S T U V W 

A

AbstractAdminClient - Class in net.greghaines.jesque.admin
Common logic for AdminClient implementations.
AbstractAdminClient(Config) - Constructor for class net.greghaines.jesque.admin.AbstractAdminClient
 
AbstractClient - Class in net.greghaines.jesque.client
Common logic for Client implementations.
AbstractClient(Config) - Constructor for class net.greghaines.jesque.client.AbstractClient
 
acquireLock(String, String, Integer) - Method in class net.greghaines.jesque.client.AbstractClient
 
acquireLock(String, String, Integer) - Method in interface net.greghaines.jesque.client.Client
A non blocking lock utilizing Redis to create a lock that can be utilized by distributed servers.
add(E) - Method in class net.greghaines.jesque.utils.ConcurrentHashSet
 
addAll(Collection<? extends E>) - Method in class net.greghaines.jesque.utils.ConcurrentHashSet
 
addJobType(String, Class<?>) - Method in class net.greghaines.jesque.admin.AdminImpl
 
addJobType(String, Class<?>) - Method in interface net.greghaines.jesque.worker.JobExecutor
Allow the given job type to be executed.
addJobType(String, Class<?>) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
addJobType(String, Class<?>) - Method in class net.greghaines.jesque.worker.WorkerPool
 
addListener(WorkerListener) - Method in interface net.greghaines.jesque.worker.WorkerEventEmitter
Register a WorkerListener for all WorkerEvents.
addListener(WorkerListener, WorkerEvent...) - Method in interface net.greghaines.jesque.worker.WorkerEventEmitter
Register a WorkerListener for the specified WorkerEvents.
addListener(WorkerListener) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
addListener(WorkerListener, WorkerEvent...) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
addListener(WorkerListener) - Method in class net.greghaines.jesque.worker.WorkerListenerDelegate
 
addListener(WorkerListener, WorkerEvent...) - Method in class net.greghaines.jesque.worker.WorkerListenerDelegate
 
addListener(WorkerListener) - Method in class net.greghaines.jesque.worker.WorkerPool
 
addListener(WorkerListener, WorkerEvent...) - Method in class net.greghaines.jesque.worker.WorkerPool
 
addQueue(String) - Method in interface net.greghaines.jesque.worker.Worker
Poll the given queue.
addQueue(String) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
addQueue(String) - Method in class net.greghaines.jesque.worker.WorkerPool
 
Admin - Interface in net.greghaines.jesque.admin
 
ADMIN_CHANNEL - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
Default channel for admin jobs
AdminClient - Interface in net.greghaines.jesque.admin
An AdminClient publishes jobs to channels.
AdminClientImpl - Class in net.greghaines.jesque.admin
 
AdminClientImpl(Config) - Constructor for class net.greghaines.jesque.admin.AdminClientImpl
Create a new AdminClientImpl, which creates it's own connection to Redis using values from the config.
AdminClientImpl(Config, boolean) - Constructor for class net.greghaines.jesque.admin.AdminClientImpl
Create a new AdminClientImpl, which creates it's own connection to Redis using values from the config.
AdminClientImpl(Config, long, long, TimeUnit) - Constructor for class net.greghaines.jesque.admin.AdminClientImpl
Create a new AdminClientImpl, which creates it's own connection to Redis using values from the config and spawns a thread to ensure the connection stays open.
AdminImpl - Class in net.greghaines.jesque.admin
 
AdminImpl(Config) - Constructor for class net.greghaines.jesque.admin.AdminImpl
 
AdminImpl(Config, Set<String>, Map<String, ? extends Class<?>>) - Constructor for class net.greghaines.jesque.admin.AdminImpl
 
AdminImpl.PubSubListener - Class in net.greghaines.jesque.admin
 
AdminImpl.PubSubListener() - Constructor for class net.greghaines.jesque.admin.AdminImpl.PubSubListener
 
ALL_QUEUES - Static variable in interface net.greghaines.jesque.worker.Worker
Special value to tell a Worker to poll all currently available queues.
AmbiguousConstructorException - Exception in net.greghaines.jesque.utils
Thrown when there is more than one matching Constructor is found.
AmbiguousConstructorException(String) - Constructor for exception net.greghaines.jesque.utils.AmbiguousConstructorException
Create a new AmbiguousConstructorException with only a message.
AmbiguousConstructorException(Class<?>, Object[], Set<Constructor<?>>) - Constructor for exception net.greghaines.jesque.utils.AmbiguousConstructorException
Create a new AmbiguousConstructorException with the possible Constructor options.
ARRAY_SUFFIX - Static variable in class net.greghaines.jesque.utils.ReflectionUtils
Suffix for array class names: "[]"

B

build() - Method in class net.greghaines.jesque.ConfigBuilder
 

C

call() - Method in class net.greghaines.jesque.worker.WorkerImplFactory
Create a new WorkerImpl using the arguments provided to this factory's constructor.
CHANNEL - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
 
checkChannels(Iterable<String>) - Static method in class net.greghaines.jesque.admin.AdminImpl
Verify that the given channels are all valid.
checkJobType(String, Class<?>) - Method in class net.greghaines.jesque.worker.WorkerImpl
Determine if a job name and job type are valid.
checkJobTypes(Map<String, ? extends Class<?>>) - Method in class net.greghaines.jesque.admin.AdminImpl
Verify the given job types are all valid.
checkJobTypes(Map<String, ? extends Class<?>>) - Method in class net.greghaines.jesque.worker.WorkerImpl
Verify the given job types are all valid.
checkPaused() - Method in class net.greghaines.jesque.worker.WorkerImpl
Checks to see if worker is paused.
checkQueues(Iterable<String>) - Static method in class net.greghaines.jesque.worker.WorkerImpl
Verify that the given queues are all valid.
clear() - Method in interface net.greghaines.jesque.meta.dao.FailureDAO
 
clear() - Method in class net.greghaines.jesque.meta.dao.impl.FailureDAORedisImpl
 
clear() - Method in class net.greghaines.jesque.utils.ConcurrentHashSet
 
Client - Interface in net.greghaines.jesque.client
A Client allows Jobs to be enqueued for execution by Workers.
ClientImpl - Class in net.greghaines.jesque.client
Basic implementation of the Client interface.
ClientImpl(Config) - Constructor for class net.greghaines.jesque.client.ClientImpl
Create a new ClientImpl, which creates it's own connection to Redis using values from the config.
ClientImpl(Config, boolean) - Constructor for class net.greghaines.jesque.client.ClientImpl
Create a new ClientImpl, which creates it's own connection to Redis using values from the config.
ClientImpl(Config, long, long, TimeUnit) - Constructor for class net.greghaines.jesque.client.ClientImpl
Create a new ClientImpl, which creates it's own connection to Redis using values from the config and spawns a thread to ensure the connection stays open.
ClientPoolImpl - Class in net.greghaines.jesque.client
A Client implementation that gets its connection to Redis from a connection pool.
ClientPoolImpl(Config, Pool<Jedis>) - Constructor for class net.greghaines.jesque.client.ClientPoolImpl
Create a ClientPoolImpl.
COLON - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
 
compareTo(KeyInfo) - Method in class net.greghaines.jesque.meta.KeyInfo
 
compareTo(QueueInfo) - Method in class net.greghaines.jesque.meta.QueueInfo
 
compareTo(WorkerInfo) - Method in class net.greghaines.jesque.meta.WorkerInfo
 
ConcurrentHashSet<E> - Class in net.greghaines.jesque.utils
An implementation of ConcurrentSet that is backed by a ConcurrentHashMap.
ConcurrentHashSet() - Constructor for class net.greghaines.jesque.utils.ConcurrentHashSet
Creates a new, empty set with a default initial capacity (16), load factor (0.75) and concurrencyLevel (16).
ConcurrentHashSet(int) - Constructor for class net.greghaines.jesque.utils.ConcurrentHashSet
Creates a new, empty set with the specified initial capacity, and with default load factor (0.75) and concurrencyLevel (16).
ConcurrentHashSet(int, float) - Constructor for class net.greghaines.jesque.utils.ConcurrentHashSet
Creates a new, empty set with the specified initial capacity and load factor and with the default concurrencyLevel (16).
ConcurrentHashSet(int, float, int) - Constructor for class net.greghaines.jesque.utils.ConcurrentHashSet
Creates a new, empty set with the specified initial capacity, load factor and concurrency level.
ConcurrentHashSet(Collection<? extends E>) - Constructor for class net.greghaines.jesque.utils.ConcurrentHashSet
Creates a new set with the same entries as the given collection.
ConcurrentSet<E> - Interface in net.greghaines.jesque.utils
An interface that denotes the implementation of Set is thread-safe.
It adds no new methods.
Config - Class in net.greghaines.jesque
An immutable configuration bean for use with the rest of the project.
Config(String, int, int, String, String, int) - Constructor for class net.greghaines.jesque.Config
Using a ConfigBuilder is recommended...
config - Variable in class net.greghaines.jesque.worker.WorkerImpl
 
ConfigBuilder - Class in net.greghaines.jesque
A builder for Configs.
ConfigBuilder() - Constructor for class net.greghaines.jesque.ConfigBuilder
No-arg constructor
ConfigBuilder(Config) - Constructor for class net.greghaines.jesque.ConfigBuilder
Create a new ConfigBuilder using an existing Config as the starting point.
contains(Object) - Method in class net.greghaines.jesque.utils.ConcurrentHashSet
 
containsAll(Collection<?>) - Method in class net.greghaines.jesque.utils.ConcurrentHashSet
 
createBacktrace(Throwable) - Static method in class net.greghaines.jesque.utils.JesqueUtils
Creates a Resque backtrace from a Throwable's stack trace.
createJedisPool(Config) - Static method in class net.greghaines.jesque.utils.PoolUtils
A simple helper method that creates a pool of connections to Redis using the supplied Config and the default pool config.
createJedisPool(Config, GenericObjectPool.Config) - Static method in class net.greghaines.jesque.utils.PoolUtils
A simple helper method that creates a pool of connections to Redis using the supplied configurations.
createKey(String, String...) - Static method in class net.greghaines.jesque.utils.JesqueUtils
Builds a namespaced Redis key with the given arguments.
createKey(String, Iterable<String>) - Static method in class net.greghaines.jesque.utils.JesqueUtils
Builds a namespaced Redis key with the given arguments.
createName() - Method in class net.greghaines.jesque.worker.WorkerImpl
Creates a unique name, suitable for use with Resque.
createObject(Class<T>, Object...) - Static method in class net.greghaines.jesque.utils.ReflectionUtils
Create an object of the given type using a constructor that matches the supplied arguments.

D

DATE_FORMAT - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
ISO-8601 compliant format
DATE_FORMAT_PHP - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
For interoperability with php-resque
DATE_FORMAT_RUBY - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
For interoperability with Resque (ruby)
DEFAULT_CHECK_CONNECTION_BEFORE_USE - Static variable in class net.greghaines.jesque.admin.AdminClientImpl
 
DEFAULT_CHECK_CONNECTION_BEFORE_USE - Static variable in class net.greghaines.jesque.client.ClientImpl
 
DEFAULT_DATABASE - Static variable in class net.greghaines.jesque.ConfigBuilder
0
DEFAULT_HOST - Static variable in class net.greghaines.jesque.ConfigBuilder
localhost
DEFAULT_MAX_LOOPS_ON_EMPTY_QUEUES - Static variable in class net.greghaines.jesque.worker.WorkerExitOnEmpty
 
DEFAULT_NAMESPACE - Static variable in class net.greghaines.jesque.ConfigBuilder
All resque clients use "resque" by default
DEFAULT_PASSWORD - Static variable in class net.greghaines.jesque.ConfigBuilder
null
DEFAULT_PORT - Static variable in class net.greghaines.jesque.ConfigBuilder
6379
DEFAULT_TIMEOUT - Static variable in class net.greghaines.jesque.ConfigBuilder
5 seconds
DefaultExceptionHandler - Class in net.greghaines.jesque.worker
 
DefaultExceptionHandler() - Constructor for class net.greghaines.jesque.worker.DefaultExceptionHandler
 
deserialize(JsonParser, DeserializationContext) - Method in class net.greghaines.jesque.json.JobFailureJsonDeserializer
 
deserialize(JsonParser, DeserializationContext) - Method in class net.greghaines.jesque.json.JobJsonDeserializer
 
deserialize(JsonParser, DeserializationContext) - Method in class net.greghaines.jesque.json.WorkerStatusJsonDeserializer
 
DEVELOPMENT - Static variable in class net.greghaines.jesque.utils.VersionUtils
 
doAcquireLock(String, String, Integer) - Method in class net.greghaines.jesque.client.AbstractClient
Actually acquire the lock based upon the client acquisition model
doAcquireLock(Jedis, String, String, String, Integer) - Static method in class net.greghaines.jesque.client.AbstractClient
Helper method that encapsulates the logic to acquire a lock.
doAcquireLock(String, String, Integer) - Method in class net.greghaines.jesque.client.ClientImpl
 
doAcquireLock(String, String, Integer) - Method in class net.greghaines.jesque.client.ClientPoolImpl
 
doEnqueue(String, String) - Method in class net.greghaines.jesque.client.AbstractClient
Actually enqueue the serialized job.
doEnqueue(Jedis, String, String, String) - Static method in class net.greghaines.jesque.client.AbstractClient
Helper method that encapsulates the minimum logic for adding a job to a queue.
doEnqueue(String, String) - Method in class net.greghaines.jesque.client.ClientImpl
 
doEnqueue(String, String) - Method in class net.greghaines.jesque.client.ClientPoolImpl
 
doPriorityEnqueue(String, String) - Method in class net.greghaines.jesque.client.AbstractClient
Actually enqueue the serialized job with high priority.
doPriorityEnqueue(Jedis, String, String, String) - Static method in class net.greghaines.jesque.client.AbstractClient
Helper method that encapsulates the minimum logic for adding a high priority job to a queue.
doPriorityEnqueue(String, String) - Method in class net.greghaines.jesque.client.ClientImpl
 
doPriorityEnqueue(String, String) - Method in class net.greghaines.jesque.client.ClientPoolImpl
 
doPublish(String, String) - Method in class net.greghaines.jesque.admin.AbstractAdminClient
Actually publish the serialized job.
doPublish(Jedis, String, String, String) - Static method in class net.greghaines.jesque.admin.AbstractAdminClient
Helper method that encapsulates the minimum logic for publishing a job to a channel.
doPublish(String, String) - Method in class net.greghaines.jesque.admin.AdminClientImpl
 
doWork(T) - Method in interface net.greghaines.jesque.utils.PoolUtils.PoolWork
Do work with a pooled resource and return a result.
doWorkInPool(Pool<T>, PoolUtils.PoolWork<T, V>) - Static method in class net.greghaines.jesque.utils.PoolUtils
 
doWorkInPoolNicely(Pool<T>, PoolUtils.PoolWork<T, V>) - Static method in class net.greghaines.jesque.utils.PoolUtils
 

E

emptyQueueSleepTime - Static variable in class net.greghaines.jesque.worker.WorkerImpl
 
end() - Method in interface net.greghaines.jesque.admin.AdminClient
Quits the connection to the Redis server.
end() - Method in class net.greghaines.jesque.admin.AdminClientImpl
 
end(boolean) - Method in class net.greghaines.jesque.admin.AdminImpl
 
end() - Method in interface net.greghaines.jesque.client.Client
Quits the connection to the Redis server.
end() - Method in class net.greghaines.jesque.client.ClientImpl
 
end() - Method in class net.greghaines.jesque.client.ClientPoolImpl
Does nothing.
end(boolean) - Method in interface net.greghaines.jesque.worker.JobExecutor
Shutdown this JobExecutor.
end(boolean) - Method in class net.greghaines.jesque.worker.WorkerImpl
Shutdown this Worker.
The worker cannot be started again; create a new worker in this case.
end(boolean) - Method in class net.greghaines.jesque.worker.WorkerPool
 
endAndJoin(boolean, long) - Method in class net.greghaines.jesque.worker.WorkerPool
Shutdown this pool and wait millis time per thread or until all threads are finished if millis is 0.
enqueue(String, Job) - Method in class net.greghaines.jesque.client.AbstractClient
 
enqueue(String, Job) - Method in interface net.greghaines.jesque.client.Client
Queues a job in a given queue to be run.
ensureJedisConnection(Jedis) - Static method in class net.greghaines.jesque.utils.JedisUtils
Ensure that the given connection is established.
entry(K, V) - Static method in class net.greghaines.jesque.utils.JesqueUtils
Creates a Map.Entry out of the given key and value.
equals(Object) - Method in class net.greghaines.jesque.Config
 
equals(Object) - Method in class net.greghaines.jesque.Job
 
equals(Object) - Method in class net.greghaines.jesque.JobFailure
 
equals(Object) - Method in class net.greghaines.jesque.WorkerStatus
 
ERROR - Static variable in class net.greghaines.jesque.utils.VersionUtils
 
ExceptionHandler - Interface in net.greghaines.jesque.worker
 
execute(Job, String, Object) - Method in class net.greghaines.jesque.admin.AdminImpl
Executes the given job.
execute(Job, String, Object) - Method in class net.greghaines.jesque.worker.WorkerImpl
Executes the given job.

F

FAILED - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
 
failMsg(Exception, String, Job) - Method in class net.greghaines.jesque.worker.WorkerImpl
Create and serialize a JobFailure.
failure(Exception, Job, String) - Method in class net.greghaines.jesque.worker.WorkerImpl
Update the status in Redis on failure
FailureDAO - Interface in net.greghaines.jesque.meta.dao
 
FailureDAORedisImpl - Class in net.greghaines.jesque.meta.dao.impl
 
FailureDAORedisImpl(Config, Pool<Jedis>) - Constructor for class net.greghaines.jesque.meta.dao.impl.FailureDAORedisImpl
 
fireEvent(WorkerEvent, Worker, String, Job, Object, Object, Exception) - Method in class net.greghaines.jesque.worker.WorkerListenerDelegate
Notify all WorkerListeners currently registered for the given WorkerEvent.
forName(String) - Static method in class net.greghaines.jesque.utils.ReflectionUtils
Replacement for Class.forName() that also returns Class instances for primitives (like "int") and array class names (like "String[]").
forName(String, ClassLoader) - Static method in class net.greghaines.jesque.utils.ReflectionUtils
Replacement for Class.forName() that also returns Class instances for primitives (e.g."int") and array class names (e.g.

G

get() - Static method in class net.greghaines.jesque.json.ObjectMapperFactory
 
getActiveWorkerCount() - Method in class net.greghaines.jesque.meta.dao.impl.WorkerInfoDAORedisImpl
 
getActiveWorkerCount() - Method in interface net.greghaines.jesque.meta.dao.WorkerInfoDAO
 
getActiveWorkers() - Method in class net.greghaines.jesque.meta.dao.impl.WorkerInfoDAORedisImpl
 
getActiveWorkers() - Method in interface net.greghaines.jesque.meta.dao.WorkerInfoDAO
 
getAllWorkers() - Method in class net.greghaines.jesque.meta.dao.impl.WorkerInfoDAORedisImpl
 
getAllWorkers() - Method in interface net.greghaines.jesque.meta.dao.WorkerInfoDAO
 
getArgs() - Method in class net.greghaines.jesque.Job
 
getArgs() - Method in exception net.greghaines.jesque.utils.AmbiguousConstructorException
 
getArgs() - Method in exception net.greghaines.jesque.utils.NoSuchConstructorException
 
getArrayValue() - Method in class net.greghaines.jesque.meta.KeyInfo
 
getBacktrace() - Method in class net.greghaines.jesque.JobFailure
 
getChannels() - Method in interface net.greghaines.jesque.admin.Admin
 
getChannels() - Method in class net.greghaines.jesque.admin.AdminImpl
 
getClassName() - Method in class net.greghaines.jesque.Job
 
getCount() - Method in interface net.greghaines.jesque.meta.dao.FailureDAO
 
getCount() - Method in class net.greghaines.jesque.meta.dao.impl.FailureDAORedisImpl
 
getDatabase() - Method in class net.greghaines.jesque.Config
 
getDefaultClassLoader() - Static method in class net.greghaines.jesque.utils.ReflectionUtils
Return the default ClassLoader to use: typically the thread context ClassLoader, if available; the ClassLoader that loaded the ReflectionUtils class will be used as fallback.
getDefaultConfig() - Static method in class net.greghaines.jesque.ConfigBuilder
 
getDefaultPoolConfig() - Static method in class net.greghaines.jesque.utils.PoolUtils
 
getError() - Method in class net.greghaines.jesque.JobFailure
 
getException() - Method in class net.greghaines.jesque.JobFailure
 
getExceptionHandler() - Method in class net.greghaines.jesque.admin.AdminImpl
 
getExceptionHandler() - Method in interface net.greghaines.jesque.worker.JobExecutor
The current exception handler.
getExceptionHandler() - Method in class net.greghaines.jesque.worker.WorkerImpl
 
getExceptionHandler() - Method in class net.greghaines.jesque.worker.WorkerPool
 
getExceptionString() - Method in class net.greghaines.jesque.JobFailure
 
getFailed() - Method in class net.greghaines.jesque.meta.WorkerInfo
 
getFailedAt() - Method in class net.greghaines.jesque.JobFailure
 
getFailures(long, long) - Method in interface net.greghaines.jesque.meta.dao.FailureDAO
 
getFailures(long, long) - Method in class net.greghaines.jesque.meta.dao.impl.FailureDAORedisImpl
 
getHost() - Method in class net.greghaines.jesque.Config
 
getHost() - Method in class net.greghaines.jesque.meta.WorkerInfo
 
getInstance() - Static method in class net.greghaines.jesque.utils.ResqueDateFormatThreadLocal
NOTE: DateFormats returned from this method are for use by the caller's thread only.
getJobs() - Method in class net.greghaines.jesque.meta.QueueInfo
 
getJobTypes() - Method in class net.greghaines.jesque.admin.AdminImpl
 
getJobTypes() - Method in interface net.greghaines.jesque.worker.JobExecutor
The allowed job names and types that this JobExecutor will execute.
getJobTypes() - Method in class net.greghaines.jesque.worker.WorkerImpl
 
getJobTypes() - Method in class net.greghaines.jesque.worker.WorkerPool
 
getKeyInfo(String) - Method in class net.greghaines.jesque.meta.dao.impl.KeysDAORedisImpl
 
getKeyInfo(String, int, int) - Method in class net.greghaines.jesque.meta.dao.impl.KeysDAORedisImpl
 
getKeyInfo(String) - Method in interface net.greghaines.jesque.meta.dao.KeysDAO
 
getKeyInfo(String, int, int) - Method in interface net.greghaines.jesque.meta.dao.KeysDAO
 
getKeyInfos() - Method in class net.greghaines.jesque.meta.dao.impl.KeysDAORedisImpl
 
getKeyInfos() - Method in interface net.greghaines.jesque.meta.dao.KeysDAO
 
getKeyTypeByValue(String) - Static method in enum net.greghaines.jesque.meta.KeyType
 
getName() - Method in class net.greghaines.jesque.meta.KeyInfo
 
getName() - Method in class net.greghaines.jesque.meta.QueueInfo
 
getName() - Method in class net.greghaines.jesque.meta.WorkerInfo
 
getName() - Method in interface net.greghaines.jesque.worker.Worker
Returns the name of this Worker.
getName() - Method in class net.greghaines.jesque.worker.WorkerImpl
 
getName() - Method in class net.greghaines.jesque.worker.WorkerPool
 
getNamespace() - Method in class net.greghaines.jesque.admin.AbstractAdminClient
 
getNamespace() - Method in class net.greghaines.jesque.client.AbstractClient
 
getNamespace() - Method in class net.greghaines.jesque.Config
 
getNamespace() - Method in class net.greghaines.jesque.meta.KeyInfo
 
getOptions() - Method in exception net.greghaines.jesque.utils.AmbiguousConstructorException
 
getPassword() - Method in class net.greghaines.jesque.Config
 
getPausedWorkerCount() - Method in class net.greghaines.jesque.meta.dao.impl.WorkerInfoDAORedisImpl
 
getPausedWorkerCount() - Method in interface net.greghaines.jesque.meta.dao.WorkerInfoDAO
 
getPausedWorkers() - Method in class net.greghaines.jesque.meta.dao.impl.WorkerInfoDAORedisImpl
 
getPausedWorkers() - Method in interface net.greghaines.jesque.meta.dao.WorkerInfoDAO
 
getPayload() - Method in class net.greghaines.jesque.JobFailure
 
getPayload() - Method in class net.greghaines.jesque.WorkerStatus
 
getPendingCount() - Method in class net.greghaines.jesque.meta.dao.impl.QueueInfoDAORedisImpl
 
getPendingCount() - Method in interface net.greghaines.jesque.meta.dao.QueueInfoDAO
 
getPid() - Method in class net.greghaines.jesque.meta.WorkerInfo
 
getPort() - Method in class net.greghaines.jesque.Config
 
getProcessed() - Method in class net.greghaines.jesque.meta.WorkerInfo
 
getProcessedCount() - Method in class net.greghaines.jesque.meta.dao.impl.QueueInfoDAORedisImpl
 
getProcessedCount() - Method in interface net.greghaines.jesque.meta.dao.QueueInfoDAO
 
getQueue() - Method in class net.greghaines.jesque.JobFailure
 
getQueue() - Method in class net.greghaines.jesque.WorkerStatus
 
getQueueInfo(String, long, long) - Method in class net.greghaines.jesque.meta.dao.impl.QueueInfoDAORedisImpl
 
getQueueInfo(String, long, long) - Method in interface net.greghaines.jesque.meta.dao.QueueInfoDAO
 
getQueueInfos() - Method in class net.greghaines.jesque.meta.dao.impl.QueueInfoDAORedisImpl
 
getQueueInfos() - Method in interface net.greghaines.jesque.meta.dao.QueueInfoDAO
 
getQueueNames() - Method in class net.greghaines.jesque.meta.dao.impl.QueueInfoDAORedisImpl
 
getQueueNames() - Method in interface net.greghaines.jesque.meta.dao.QueueInfoDAO
 
getQueues() - Method in class net.greghaines.jesque.meta.WorkerInfo
 
getQueues() - Method in interface net.greghaines.jesque.worker.Worker
The queues that this Worker will poll.
getQueues() - Method in class net.greghaines.jesque.worker.WorkerImpl
 
getQueues() - Method in class net.greghaines.jesque.worker.WorkerPool
 
getReconnectAttempts() - Method in class net.greghaines.jesque.admin.AdminImpl
 
getReconnectAttempts() - Method in class net.greghaines.jesque.worker.WorkerImpl
 
getRedisInfo() - Method in class net.greghaines.jesque.meta.dao.impl.KeysDAORedisImpl
 
getRedisInfo() - Method in interface net.greghaines.jesque.meta.dao.KeysDAO
 
getRetriedAt() - Method in class net.greghaines.jesque.JobFailure
 
getRunAt() - Method in class net.greghaines.jesque.WorkerStatus
 
getSize() - Method in class net.greghaines.jesque.meta.KeyInfo
 
getSize() - Method in class net.greghaines.jesque.meta.QueueInfo
 
getStarted() - Method in class net.greghaines.jesque.meta.WorkerInfo
 
getState() - Method in class net.greghaines.jesque.meta.WorkerInfo
 
getStatus() - Method in class net.greghaines.jesque.meta.WorkerInfo
 
getTimeout() - Method in class net.greghaines.jesque.Config
 
getType() - Method in class net.greghaines.jesque.meta.KeyInfo
 
getType() - Method in exception net.greghaines.jesque.utils.AmbiguousConstructorException
 
getType() - Method in exception net.greghaines.jesque.utils.NoSuchConstructorException
 
getType() - Method in exception net.greghaines.jesque.worker.UnpermittedJobException
 
getURI() - Method in class net.greghaines.jesque.Config
 
getVersion() - Static method in class net.greghaines.jesque.utils.VersionUtils
 
getVersionParts() - Static method in class net.greghaines.jesque.utils.VersionUtils
Returns an Object array of length four, where the first three elements are Integers representing each of the version parts and the last, fourth, element is a String that is either null, for releases, or "SNAPSHOT", for snapshots.
getWorker() - Method in interface net.greghaines.jesque.admin.Admin
 
getWorker() - Method in class net.greghaines.jesque.admin.AdminImpl
 
getWorker() - Method in class net.greghaines.jesque.JobFailure
 
getWorker(String) - Method in class net.greghaines.jesque.meta.dao.impl.WorkerInfoDAORedisImpl
 
getWorker(String) - Method in interface net.greghaines.jesque.meta.dao.WorkerInfoDAO
 
getWorkerCount() - Method in class net.greghaines.jesque.meta.dao.impl.WorkerInfoDAORedisImpl
 
getWorkerCount() - Method in interface net.greghaines.jesque.meta.dao.WorkerInfoDAO
 
getWorkerHostMap() - Method in class net.greghaines.jesque.meta.dao.impl.WorkerInfoDAORedisImpl
 
getWorkerHostMap() - Method in interface net.greghaines.jesque.meta.dao.WorkerInfoDAO
 
getWorkerId() - Method in class net.greghaines.jesque.worker.WorkerImpl
 

H

hashCode() - Method in class net.greghaines.jesque.Config
 
hashCode() - Method in class net.greghaines.jesque.Job
 
hashCode() - Method in class net.greghaines.jesque.JobFailure
 
hashCode() - Method in class net.greghaines.jesque.WorkerStatus
 

I

initialValue() - Method in class net.greghaines.jesque.utils.ResqueDateFormatThreadLocal
 
INSTANCE - Static variable in class net.greghaines.jesque.worker.LoggingWorkerListener
 
isAssignable(Class<?>, Class<?>) - Static method in class net.greghaines.jesque.utils.ReflectionUtils
Check if the right-hand side type may be assigned to the left-hand side type, assuming setting by reflection.
isAssignableValue(Class<?>, Object) - Static method in class net.greghaines.jesque.utils.ReflectionUtils
Determine if the given type is assignable from the given value, assuming setting by reflection.
isEmpty() - Method in class net.greghaines.jesque.utils.ConcurrentHashSet
 
isPaused() - Method in interface net.greghaines.jesque.worker.Worker
Returns whether this worker is paused.
isPaused() - Method in class net.greghaines.jesque.worker.WorkerImpl
 
isPaused() - Method in class net.greghaines.jesque.worker.WorkerPool
 
isPaused() - Method in class net.greghaines.jesque.WorkerStatus
 
isProcessingJob() - Method in class net.greghaines.jesque.admin.AdminImpl
 
isProcessingJob() - Method in interface net.greghaines.jesque.worker.JobExecutor
Returns whether this JobExecutor is currently processing a job.
isProcessingJob() - Method in class net.greghaines.jesque.worker.WorkerImpl
 
isProcessingJob() - Method in class net.greghaines.jesque.worker.WorkerPool
 
isShutdown() - Method in class net.greghaines.jesque.admin.AdminImpl
 
isShutdown() - Method in interface net.greghaines.jesque.worker.JobExecutor
Returns whether this JobExecutor is either shutdown or in the process of shutting down.
isShutdown() - Method in class net.greghaines.jesque.worker.WorkerImpl
 
isShutdown() - Method in class net.greghaines.jesque.worker.WorkerPool
 
isThreadNameChangingEnabled() - Static method in class net.greghaines.jesque.worker.WorkerImpl
 
isValid() - Method in class net.greghaines.jesque.Job
 
iterator() - Method in class net.greghaines.jesque.utils.ConcurrentHashSet
 

J

JAVA_DYNAMIC_QUEUES - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
 
jedis - Variable in class net.greghaines.jesque.admin.AdminImpl
 
jedis - Variable in class net.greghaines.jesque.worker.WorkerImpl
 
jedisPubSub - Variable in class net.greghaines.jesque.admin.AdminImpl
 
JedisUtils - Class in net.greghaines.jesque.utils
 
JesqueUtils - Class in net.greghaines.jesque.utils
Miscellaneous utilities.
Job - Class in net.greghaines.jesque
A simple class to describe a job to be run by a worker.
Job() - Constructor for class net.greghaines.jesque.Job
No-arg contructor
Job(Job) - Constructor for class net.greghaines.jesque.Job
Cloning constructor.
Job(String, List<?>) - Constructor for class net.greghaines.jesque.Job
A convenience constructor.
Job(String, Object...) - Constructor for class net.greghaines.jesque.Job
Create a new Job with the given class name and arguments.
JobExecutor - Interface in net.greghaines.jesque.worker
 
JobExecutor.State - Enum in net.greghaines.jesque.worker
 
JobFailure - Class in net.greghaines.jesque
A bean to hold information about a job that failed.
JobFailure() - Constructor for class net.greghaines.jesque.JobFailure
No-arg constructor
JobFailure(JobFailure) - Constructor for class net.greghaines.jesque.JobFailure
Cloning constructor.
JobFailureJsonDeserializer - Class in net.greghaines.jesque.json
A custom Jackson deserializer for JobFailures.
JobFailureJsonDeserializer() - Constructor for class net.greghaines.jesque.json.JobFailureJsonDeserializer
 
JobFailureJsonSerializer - Class in net.greghaines.jesque.json
A custom Jackson serializer for JobFailures.
JobFailureJsonSerializer() - Constructor for class net.greghaines.jesque.json.JobFailureJsonSerializer
 
JobJsonDeserializer - Class in net.greghaines.jesque.json
A custom Jackson deserializer for Jobs.
JobJsonDeserializer() - Constructor for class net.greghaines.jesque.json.JobJsonDeserializer
 
JobJsonSerializer - Class in net.greghaines.jesque.json
A custom Jackson serializer for Jobs.
JobJsonSerializer() - Constructor for class net.greghaines.jesque.json.JobJsonSerializer
 
join(long) - Method in class net.greghaines.jesque.admin.AdminImpl
 
join(String, String...) - Static method in class net.greghaines.jesque.utils.JesqueUtils
Join the given strings, separated by the given separator.
join(String, Iterable<String>) - Static method in class net.greghaines.jesque.utils.JesqueUtils
Join the given strings, separated by the given separator.
join(long) - Method in interface net.greghaines.jesque.worker.JobExecutor
Wait for this JobExecutor to complete.
join(long) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
join(long) - Method in class net.greghaines.jesque.worker.WorkerPool
Join to internal threads and wait millis time per thread or until all threads are finished if millis is 0.

K

key(String...) - Method in class net.greghaines.jesque.client.AbstractClient
Builds a namespaced Redis key with the given arguments.
key(String...) - Method in class net.greghaines.jesque.worker.WorkerImpl
Builds a namespaced Redis key with the given arguments.
KeyInfo - Class in net.greghaines.jesque.meta
Encapsulates information about a key in Redis.
KeyInfo() - Constructor for class net.greghaines.jesque.meta.KeyInfo
 
KeyInfo(String, KeyType) - Constructor for class net.greghaines.jesque.meta.KeyInfo
 
KeysDAO - Interface in net.greghaines.jesque.meta.dao
 
KeysDAORedisImpl - Class in net.greghaines.jesque.meta.dao.impl
 
KeysDAORedisImpl(Config, Pool<Jedis>) - Constructor for class net.greghaines.jesque.meta.dao.impl.KeysDAORedisImpl
 
KeyType - Enum in net.greghaines.jesque.meta
 

L

listenerDelegate - Variable in class net.greghaines.jesque.worker.WorkerImpl
 
LoggingWorkerListener - Class in net.greghaines.jesque.worker
An implementation of WorkerListener that logs every event that it is registered for.

M

map(Map.Entry<? extends K, ? extends V>...) - Static method in class net.greghaines.jesque.utils.JesqueUtils
A convenient way of creating a map on the fly.
materializeJob(Job) - Static method in class net.greghaines.jesque.utils.JesqueUtils
Materializes a job by assuming the Job.getClassName() is a fully-qualified Java type.
materializeJob(Job, Map<String, Class<?>>) - Static method in class net.greghaines.jesque.utils.JesqueUtils
Materializes a job by looking up Job.getClassName() in the provided map of job types.

N

namespace - Variable in class net.greghaines.jesque.admin.AdminImpl
 
namespace - Variable in class net.greghaines.jesque.worker.WorkerImpl
 
net.greghaines.jesque - package net.greghaines.jesque
 
net.greghaines.jesque.admin - package net.greghaines.jesque.admin
 
net.greghaines.jesque.admin.commands - package net.greghaines.jesque.admin.commands
 
net.greghaines.jesque.client - package net.greghaines.jesque.client
 
net.greghaines.jesque.json - package net.greghaines.jesque.json
 
net.greghaines.jesque.meta - package net.greghaines.jesque.meta
 
net.greghaines.jesque.meta.dao - package net.greghaines.jesque.meta.dao
 
net.greghaines.jesque.meta.dao.impl - package net.greghaines.jesque.meta.dao.impl
 
net.greghaines.jesque.utils - package net.greghaines.jesque.utils
 
net.greghaines.jesque.worker - package net.greghaines.jesque.worker
 
NoSuchConstructorException - Exception in net.greghaines.jesque.utils
Thrown when the specified constructor could not be found.
NoSuchConstructorException(String) - Constructor for exception net.greghaines.jesque.utils.NoSuchConstructorException
Create a new NoSuchConstructorException with only a message.
NoSuchConstructorException(Class<?>, Object...) - Constructor for exception net.greghaines.jesque.utils.NoSuchConstructorException
Create a new NoSuchConstructorException with the type and arguments.

O

ObjectMapperFactory - Class in net.greghaines.jesque.json
A helper that creates a fully-configured singleton ObjectMapper.
onEvent(WorkerEvent, Worker, String, Job, Object, Object, Exception) - Method in class net.greghaines.jesque.worker.LoggingWorkerListener
If there is an Exception, it is logged as an error, otherwise it is logged as a debug message.
onEvent(WorkerEvent, Worker, String, Job, Object, Object, Exception) - Method in interface net.greghaines.jesque.worker.WorkerListener
This method is called by the Worker upon the occurence of a registered WorkerEvent.
onException(JobExecutor, Exception, String) - Method in class net.greghaines.jesque.worker.DefaultExceptionHandler
 
onException(JobExecutor, Exception, String) - Method in interface net.greghaines.jesque.worker.ExceptionHandler
 
onMessage(String, String) - Method in class net.greghaines.jesque.admin.AdminImpl.PubSubListener
 
onPMessage(String, String, String) - Method in class net.greghaines.jesque.admin.AdminImpl.PubSubListener
 
onPSubscribe(String, int) - Method in class net.greghaines.jesque.admin.AdminImpl.PubSubListener
 
onPUnsubscribe(String, int) - Method in class net.greghaines.jesque.admin.AdminImpl.PubSubListener
 
onSubscribe(String, int) - Method in class net.greghaines.jesque.admin.AdminImpl.PubSubListener
 
onUnsubscribe(String, int) - Method in class net.greghaines.jesque.admin.AdminImpl.PubSubListener
 

P

PauseCommand - Class in net.greghaines.jesque.admin.commands
 
PauseCommand(boolean) - Constructor for class net.greghaines.jesque.admin.commands.PauseCommand
 
pauseMsg() - Method in class net.greghaines.jesque.worker.WorkerImpl
Create and serialize a WorkerStatus for a pause event.
poll() - Method in class net.greghaines.jesque.worker.WorkerExitOnEmpty
Polls the queues for jobs and executes them.
Exits if all queues are empty maxLoopOnEmptyQueues times
poll() - Method in class net.greghaines.jesque.worker.WorkerImpl
Polls the queues for jobs and executes them.
PONG - Static variable in class net.greghaines.jesque.utils.JedisUtils
 
PoolUtils - Class in net.greghaines.jesque.utils
Convenience methods for doing work with pooled resources.
PoolUtils.PoolWork<T,V> - Interface in net.greghaines.jesque.utils
A unit of work that utilizes a pooled resource.
priorityEnqueue(String, Job) - Method in class net.greghaines.jesque.client.AbstractClient
 
priorityEnqueue(String, Job) - Method in interface net.greghaines.jesque.client.Client
Queues a job with high priority in a given queue to be run.
process(Job, String) - Method in class net.greghaines.jesque.worker.WorkerImpl
Materializes and executes the given job.
PROCESSED - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
 
publish(Job) - Method in class net.greghaines.jesque.admin.AbstractAdminClient
 
publish(String, Job) - Method in class net.greghaines.jesque.admin.AbstractAdminClient
 
publish(Job) - Method in interface net.greghaines.jesque.admin.AdminClient
Publishes a job on the ResqueConstants.ADMIN_CHANNEL channel.
publish(String, Job) - Method in interface net.greghaines.jesque.admin.AdminClient
Publishes a job on the given channel.

Q

QUEUE - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
 
QueueInfo - Class in net.greghaines.jesque.meta
 
QueueInfo() - Constructor for class net.greghaines.jesque.meta.QueueInfo
 
QueueInfoDAO - Interface in net.greghaines.jesque.meta.dao
 
QueueInfoDAORedisImpl - Class in net.greghaines.jesque.meta.dao.impl
 
QueueInfoDAORedisImpl(Config, Pool<Jedis>) - Constructor for class net.greghaines.jesque.meta.dao.impl.QueueInfoDAORedisImpl
 
queueNames - Variable in class net.greghaines.jesque.worker.WorkerImpl
 
QUEUES - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
 

R

reconnect(Jedis, int, long) - Static method in class net.greghaines.jesque.utils.JedisUtils
Attempt to reconnect to Redis.
reconnectAttempts - Static variable in class net.greghaines.jesque.worker.WorkerImpl
 
reconnectSleepTime - Static variable in class net.greghaines.jesque.worker.WorkerImpl
 
recoverFromException(String, Exception) - Method in class net.greghaines.jesque.admin.AdminImpl
Handle an exception that was thrown from inside AdminImpl.PubSubListener.onMessage(String,String)
recoverFromException(String, Exception) - Method in class net.greghaines.jesque.worker.WorkerImpl
Handle an exception that was thrown from inside WorkerImpl.poll()
RecoveryStrategy - Enum in net.greghaines.jesque.worker
 
recreateThrowable(String, String, List<String>) - Static method in class net.greghaines.jesque.utils.JesqueUtils
Recreate an exception from a type name, a message and a backtrace (created from JesqueUtils.createBacktrace(Throwable)).
ReflectionUtils - Class in net.greghaines.jesque.utils
Reflection utilities.
remove(long) - Method in interface net.greghaines.jesque.meta.dao.FailureDAO
 
remove(long) - Method in class net.greghaines.jesque.meta.dao.impl.FailureDAORedisImpl
 
remove(Object) - Method in class net.greghaines.jesque.utils.ConcurrentHashSet
 
removeAll(Collection<?>) - Method in class net.greghaines.jesque.utils.ConcurrentHashSet
 
removeAllListeners() - Method in interface net.greghaines.jesque.worker.WorkerEventEmitter
Unregister all WorkerListeners for all WorkerEvents.
removeAllListeners(WorkerEvent...) - Method in interface net.greghaines.jesque.worker.WorkerEventEmitter
Unregister all WorkerListeners for the specified WorkerEvents.
removeAllListeners() - Method in class net.greghaines.jesque.worker.WorkerImpl
 
removeAllListeners(WorkerEvent...) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
removeAllListeners() - Method in class net.greghaines.jesque.worker.WorkerListenerDelegate
 
removeAllListeners(WorkerEvent...) - Method in class net.greghaines.jesque.worker.WorkerListenerDelegate
 
removeAllListeners() - Method in class net.greghaines.jesque.worker.WorkerPool
 
removeAllListeners(WorkerEvent...) - Method in class net.greghaines.jesque.worker.WorkerPool
 
removeAllQueues() - Method in interface net.greghaines.jesque.worker.Worker
Stop polling all queues.
removeAllQueues() - Method in class net.greghaines.jesque.worker.WorkerImpl
 
removeAllQueues() - Method in class net.greghaines.jesque.worker.WorkerPool
 
removeJobName(String) - Method in class net.greghaines.jesque.admin.AdminImpl
 
removeJobName(String) - Method in interface net.greghaines.jesque.worker.JobExecutor
Disallow the job name from being executed.
removeJobName(String) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
removeJobName(String) - Method in class net.greghaines.jesque.worker.WorkerPool
 
removeJobType(Class<?>) - Method in class net.greghaines.jesque.admin.AdminImpl
 
removeJobType(Class<?>) - Method in interface net.greghaines.jesque.worker.JobExecutor
Disallow the job type from being executed.
removeJobType(Class<?>) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
removeJobType(Class<?>) - Method in class net.greghaines.jesque.worker.WorkerPool
 
removeListener(WorkerListener) - Method in interface net.greghaines.jesque.worker.WorkerEventEmitter
Unregister a WorkerListener for all WorkerEvents.
removeListener(WorkerListener, WorkerEvent...) - Method in interface net.greghaines.jesque.worker.WorkerEventEmitter
Unregister a WorkerListener for the specified WorkerEvents.
removeListener(WorkerListener) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
removeListener(WorkerListener, WorkerEvent...) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
removeListener(WorkerListener) - Method in class net.greghaines.jesque.worker.WorkerListenerDelegate
 
removeListener(WorkerListener, WorkerEvent...) - Method in class net.greghaines.jesque.worker.WorkerListenerDelegate
 
removeListener(WorkerListener) - Method in class net.greghaines.jesque.worker.WorkerPool
 
removeListener(WorkerListener, WorkerEvent...) - Method in class net.greghaines.jesque.worker.WorkerPool
 
removeQueue(String) - Method in class net.greghaines.jesque.meta.dao.impl.QueueInfoDAORedisImpl
 
removeQueue(String) - Method in interface net.greghaines.jesque.meta.dao.QueueInfoDAO
 
removeQueue(String, boolean) - Method in interface net.greghaines.jesque.worker.Worker
Stop polling the given queue.
removeQueue(String, boolean) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
removeQueue(String, boolean) - Method in class net.greghaines.jesque.worker.WorkerPool
 
removeWorker(String) - Method in class net.greghaines.jesque.meta.dao.impl.WorkerInfoDAORedisImpl
Remove the metadata about a worker
removeWorker(String) - Method in interface net.greghaines.jesque.meta.dao.WorkerInfoDAO
 
renameThread(String) - Method in class net.greghaines.jesque.worker.WorkerImpl
Rename the current thread with the given message.
requeue(long) - Method in interface net.greghaines.jesque.meta.dao.FailureDAO
 
requeue(long) - Method in class net.greghaines.jesque.meta.dao.impl.FailureDAORedisImpl
 
ResqueConstants - Interface in net.greghaines.jesque.utils
Constants used by Resque.
ResqueDateFormatThreadLocal - Class in net.greghaines.jesque.utils
Provides DateFormats configured for use with Resque.
retainAll(Collection<?>) - Method in class net.greghaines.jesque.utils.ConcurrentHashSet
 
run() - Method in class net.greghaines.jesque.admin.AdminImpl
 
run() - Method in class net.greghaines.jesque.admin.commands.PauseCommand
 
run() - Method in class net.greghaines.jesque.admin.commands.ShutdownCommand
 
run() - Method in class net.greghaines.jesque.worker.WorkerImpl
Starts this worker.
run() - Method in class net.greghaines.jesque.worker.WorkerPool
 

S

serialize(JobFailure, JsonGenerator, SerializerProvider) - Method in class net.greghaines.jesque.json.JobFailureJsonSerializer
 
serialize(Job, JsonGenerator, SerializerProvider) - Method in class net.greghaines.jesque.json.JobJsonSerializer
 
serialize(WorkerStatus, JsonGenerator, SerializerProvider) - Method in class net.greghaines.jesque.json.WorkerStatusJsonSerializer
 
set(K...) - Static method in class net.greghaines.jesque.utils.JesqueUtils
Creates a Set out of the given keys
setArgs(Object[]) - Method in class net.greghaines.jesque.Job
Set the arguments.
setArrayValue(List<String>) - Method in class net.greghaines.jesque.meta.KeyInfo
 
setBacktrace(List<String>) - Method in class net.greghaines.jesque.JobFailure
Set the backtrace of the exception
setChannels(Set<String>) - Method in interface net.greghaines.jesque.admin.Admin
 
setChannels(Set<String>) - Method in class net.greghaines.jesque.admin.AdminImpl
 
setClassName(String) - Method in class net.greghaines.jesque.Job
Set the class name.
setError(String) - Method in class net.greghaines.jesque.JobFailure
Set the error that occurred
setException(Throwable) - Method in class net.greghaines.jesque.JobFailure
Set the exception that occured.
setExceptionHandler(ExceptionHandler) - Method in class net.greghaines.jesque.admin.AdminImpl
 
setExceptionHandler(ExceptionHandler) - Method in interface net.greghaines.jesque.worker.JobExecutor
Set this JobExecutor's exception handler to the given handler.
setExceptionHandler(ExceptionHandler) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
setExceptionHandler(ExceptionHandler) - Method in class net.greghaines.jesque.worker.WorkerPool
 
setExceptionString(String) - Method in class net.greghaines.jesque.JobFailure
Set the exception that occured.
setFailed(Long) - Method in class net.greghaines.jesque.meta.WorkerInfo
 
setFailedAt(Date) - Method in class net.greghaines.jesque.JobFailure
Set when the error occurred.
setHost(String) - Method in class net.greghaines.jesque.meta.WorkerInfo
 
setJobs(List<Job>) - Method in class net.greghaines.jesque.meta.QueueInfo
 
setJobTypes(Map<String, ? extends Class<?>>) - Method in class net.greghaines.jesque.admin.AdminImpl
 
setJobTypes(Map<String, ? extends Class<?>>) - Method in interface net.greghaines.jesque.worker.JobExecutor
Clear any current allowed job types and use the given set.
setJobTypes(Map<String, ? extends Class<?>>) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
setJobTypes(Map<String, ? extends Class<?>>) - Method in class net.greghaines.jesque.worker.WorkerPool
 
setName(String) - Method in class net.greghaines.jesque.meta.KeyInfo
 
setName(String) - Method in class net.greghaines.jesque.meta.QueueInfo
 
setName(String) - Method in class net.greghaines.jesque.meta.WorkerInfo
 
setNamespace(String) - Method in class net.greghaines.jesque.meta.KeyInfo
 
setPaused(boolean) - Method in class net.greghaines.jesque.WorkerStatus
Sets whether the worker is paused.
setPayload(Job) - Method in class net.greghaines.jesque.JobFailure
Set the job.
setPayload(Job) - Method in class net.greghaines.jesque.WorkerStatus
Set the job.
setPid(String) - Method in class net.greghaines.jesque.meta.WorkerInfo
 
setProcessed(Long) - Method in class net.greghaines.jesque.meta.WorkerInfo
 
setQueue(String) - Method in class net.greghaines.jesque.JobFailure
Set the queue the job came from.
setQueue(String) - Method in class net.greghaines.jesque.WorkerStatus
Set which queue the current job came from.
setQueues(List<String>) - Method in class net.greghaines.jesque.meta.WorkerInfo
 
setQueues(Collection<String>) - Method in interface net.greghaines.jesque.worker.Worker
Clear any current queues and poll the given queues.
setQueues(Collection<String>) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
setQueues(Collection<String>) - Method in class net.greghaines.jesque.worker.WorkerPool
 
setRetriedAt(Date) - Method in class net.greghaines.jesque.JobFailure
Set when the job was retried.
setRunAt(Date) - Method in class net.greghaines.jesque.WorkerStatus
Set when the Worker started on the current job.
setSize(Long) - Method in class net.greghaines.jesque.meta.KeyInfo
 
setSize(Long) - Method in class net.greghaines.jesque.meta.QueueInfo
 
setStarted(Date) - Method in class net.greghaines.jesque.meta.WorkerInfo
 
setState(WorkerInfo.State) - Method in class net.greghaines.jesque.meta.WorkerInfo
 
setStatus(WorkerStatus) - Method in class net.greghaines.jesque.meta.WorkerInfo
 
setThreadNameChangingEnabled(boolean) - Static method in class net.greghaines.jesque.worker.WorkerImpl
Enable/disable worker thread renaming during normal operation.
setType(KeyType) - Method in class net.greghaines.jesque.meta.KeyInfo
 
setWorker(Worker) - Method in interface net.greghaines.jesque.admin.Admin
 
setWorker(Worker) - Method in class net.greghaines.jesque.admin.AdminImpl
 
setWorker(Worker) - Method in class net.greghaines.jesque.admin.commands.PauseCommand
 
setWorker(Worker) - Method in class net.greghaines.jesque.admin.commands.ShutdownCommand
 
setWorker(String) - Method in class net.greghaines.jesque.JobFailure
Set the name of the worker where the job failed.
setWorker(Worker) - Method in interface net.greghaines.jesque.worker.WorkerAware
 
ShutdownCommand - Class in net.greghaines.jesque.admin.commands
 
ShutdownCommand(boolean) - Constructor for class net.greghaines.jesque.admin.commands.ShutdownCommand
 
shutdownWorkers(boolean) - Method in class net.greghaines.jesque.admin.AbstractAdminClient
 
shutdownWorkers(String, boolean) - Method in class net.greghaines.jesque.admin.AbstractAdminClient
 
shutdownWorkers(boolean) - Method in interface net.greghaines.jesque.admin.AdminClient
Send a shutdown command on the ResqueConstants.ADMIN_CHANNEL channel.
shutdownWorkers(String, boolean) - Method in interface net.greghaines.jesque.admin.AdminClient
Send a shutdown command on the given channel.
size() - Method in class net.greghaines.jesque.utils.ConcurrentHashSet
 
SNAPSHOT - Static variable in class net.greghaines.jesque.utils.VersionUtils
 
STARTED - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
 
STAT - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
 
state - Variable in class net.greghaines.jesque.admin.AdminImpl
 
state - Variable in class net.greghaines.jesque.worker.WorkerImpl
 
statusMsg(String, Job) - Method in class net.greghaines.jesque.worker.WorkerImpl
Create and serialize a WorkerStatus.
success(Job, Object, Object, String) - Method in class net.greghaines.jesque.worker.WorkerImpl
Update the status in Redis on success.

T

testJedisConnection(Jedis) - Static method in class net.greghaines.jesque.utils.JedisUtils
Test if a connection is valid.
toArray() - Method in class net.greghaines.jesque.utils.ConcurrentHashSet
 
toArray(T[]) - Method in class net.greghaines.jesque.utils.ConcurrentHashSet
 
togglePause(boolean) - Method in interface net.greghaines.jesque.worker.Worker
Toggle whether this worker will process any new jobs.
togglePause(boolean) - Method in class net.greghaines.jesque.worker.WorkerImpl
 
togglePause(boolean) - Method in class net.greghaines.jesque.worker.WorkerPool
 
togglePausedWorkers(boolean) - Method in class net.greghaines.jesque.admin.AbstractAdminClient
 
togglePausedWorkers(String, boolean) - Method in class net.greghaines.jesque.admin.AbstractAdminClient
 
togglePausedWorkers(boolean) - Method in interface net.greghaines.jesque.admin.AdminClient
Send a pause command on the ResqueConstants.ADMIN_CHANNEL channel.
togglePausedWorkers(String, boolean) - Method in interface net.greghaines.jesque.admin.AdminClient
Send a pause command on the given channel.
toString() - Method in class net.greghaines.jesque.Config
 
toString() - Method in class net.greghaines.jesque.Job
 
toString() - Method in class net.greghaines.jesque.meta.KeyInfo
 
toString() - Method in enum net.greghaines.jesque.meta.KeyType
 
toString() - Method in class net.greghaines.jesque.meta.QueueInfo
 
toString() - Method in class net.greghaines.jesque.meta.WorkerInfo
 
toString() - Method in class net.greghaines.jesque.worker.WorkerImpl
 

U

UnpermittedJobException - Exception in net.greghaines.jesque.worker
Thrown by a Worker when it receives a Job that it is not allowed to run.
UnpermittedJobException(String) - Constructor for exception net.greghaines.jesque.worker.UnpermittedJobException
Create a new UnpermittedJobException with only a message.
UnpermittedJobException(Class<?>) - Constructor for exception net.greghaines.jesque.worker.UnpermittedJobException
Create a new UnpermittedJobException with the type.

V

valueOf(String) - Static method in enum net.greghaines.jesque.meta.KeyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.greghaines.jesque.meta.WorkerInfo.State
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.greghaines.jesque.worker.JobExecutor.State
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.greghaines.jesque.worker.RecoveryStrategy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.greghaines.jesque.worker.WorkerEvent
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.greghaines.jesque.meta.KeyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.greghaines.jesque.meta.WorkerInfo.State
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.greghaines.jesque.worker.JobExecutor.State
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.greghaines.jesque.worker.RecoveryStrategy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.greghaines.jesque.worker.WorkerEvent
Returns an array containing the constants of this enum type, in the order they are declared.
VersionUtils - Class in net.greghaines.jesque.utils
Grabs the version number from the Maven metadata.

W

withDatabase(int) - Method in class net.greghaines.jesque.ConfigBuilder
Configs created by this ConfigBuilder will use the given Redis database.
withHost(String) - Method in class net.greghaines.jesque.ConfigBuilder
Configs created by this ConfigBuilder will have the given Redis hostname.
withNamespace(String) - Method in class net.greghaines.jesque.ConfigBuilder
Configs created by this ConfigBuilder will have the given Redis namespace to prefix keys with.
withPassword(String) - Method in class net.greghaines.jesque.ConfigBuilder
Configs created by this ConfigBuilder will authenticate with the given Redis password.
withPort(int) - Method in class net.greghaines.jesque.ConfigBuilder
Configs created by this ConfigBuilder will have the given Redis port number.
withTimeout(int) - Method in class net.greghaines.jesque.ConfigBuilder
Configs created by this ConfigBuilder will have the given Redis connection timeout.
WORKER - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
 
Worker - Interface in net.greghaines.jesque.worker
A Worker polls for Jobs from a specified list of queues, executing them in sequence and notifying WorkerListeners in the process.
WorkerAware - Interface in net.greghaines.jesque.worker
 
WorkerEvent - Enum in net.greghaines.jesque.worker
The possible WorkerEvents that a WorkerListener may register for.
WorkerEventEmitter - Interface in net.greghaines.jesque.worker
A WorkerEventEmitter allows WorkerListeners to register for WorkerEvents.
WorkerExitOnEmpty - Class in net.greghaines.jesque.worker
An implementation of Worker that exits if all queues are empty maxLoopOnEmptyQueues times.
WorkerExitOnEmpty(Config, Collection<String>, Map<String, ? extends Class<?>>) - Constructor for class net.greghaines.jesque.worker.WorkerExitOnEmpty
 
WorkerExitOnEmpty(Config, Collection<String>, Map<String, ? extends Class<?>>, int) - Constructor for class net.greghaines.jesque.worker.WorkerExitOnEmpty
 
WorkerImpl - Class in net.greghaines.jesque.worker
Basic implementation of the Worker interface.
WorkerImpl(Config, Collection<String>, Map<String, ? extends Class<?>>) - Constructor for class net.greghaines.jesque.worker.WorkerImpl
Creates a new WorkerImpl, which creates it's own connection to Redis using values from the config.
WorkerImplFactory - Class in net.greghaines.jesque.worker
A simple factory for WorkerImpls.
WorkerImplFactory(Config, Collection<String>, Map<String, ? extends Class<?>>) - Constructor for class net.greghaines.jesque.worker.WorkerImplFactory
Create a new factory.
WorkerInfo - Class in net.greghaines.jesque.meta
 
WorkerInfo() - Constructor for class net.greghaines.jesque.meta.WorkerInfo
 
WorkerInfo.State - Enum in net.greghaines.jesque.meta
 
WorkerInfoDAO - Interface in net.greghaines.jesque.meta.dao
 
WorkerInfoDAORedisImpl - Class in net.greghaines.jesque.meta.dao.impl
 
WorkerInfoDAORedisImpl(Config, Pool<Jedis>) - Constructor for class net.greghaines.jesque.meta.dao.impl.WorkerInfoDAORedisImpl
 
WorkerListener - Interface in net.greghaines.jesque.worker
A WorkerListener can register with a Worker to be notified of WorkerEvents.
WorkerListenerDelegate - Class in net.greghaines.jesque.worker
This class keeps track of WorkerListeners and notifies each listener when fireEvent() is invoked.
WorkerListenerDelegate() - Constructor for class net.greghaines.jesque.worker.WorkerListenerDelegate
Create a new WorkerListenerDelegate.
WorkerPool - Class in net.greghaines.jesque.worker
Creates a fixed number of identical Workers, each on a separate Thread.
WorkerPool(Callable<? extends Worker>, int) - Constructor for class net.greghaines.jesque.worker.WorkerPool
Create a WorkerPool with the given number of Workers and the default ThreadFactory.
WorkerPool(Callable<? extends Worker>, int, ThreadFactory) - Constructor for class net.greghaines.jesque.worker.WorkerPool
Create a WorkerPool with the given number of Workers and the given ThreadFactory.
workerRef - Variable in class net.greghaines.jesque.admin.AdminImpl
 
WORKERS - Static variable in interface net.greghaines.jesque.utils.ResqueConstants
 
WorkerStatus - Class in net.greghaines.jesque
A bean to hold information about the status of a Worker.
WorkerStatus() - Constructor for class net.greghaines.jesque.WorkerStatus
No-arg constructor
WorkerStatus(WorkerStatus) - Constructor for class net.greghaines.jesque.WorkerStatus
Cloning constructor.
WorkerStatusJsonDeserializer - Class in net.greghaines.jesque.json
A custom Jackson deserializer for WorkerStatuses.
WorkerStatusJsonDeserializer() - Constructor for class net.greghaines.jesque.json.WorkerStatusJsonDeserializer
 
WorkerStatusJsonSerializer - Class in net.greghaines.jesque.json
A custom Jackson serializer for WorkerStatuses.
WorkerStatusJsonSerializer() - Constructor for class net.greghaines.jesque.json.WorkerStatusJsonSerializer
 
A B C D E F G H I J K L M N O P Q R S T U V W 

Copyright © 2011-2013. All Rights Reserved.