public class WorkerPoolImplFactory extends Object implements Callable<WorkerPoolImpl>
WorkerPoolImpls.
Designed to be used with WorkerPool.| Constructor and Description |
|---|
WorkerPoolImplFactory(Config config,
Collection<String> queues,
JobFactory jobFactory,
redis.clients.util.Pool<redis.clients.jedis.Jedis> jedisPool)
Create a new factory.
|
| Modifier and Type | Method and Description |
|---|---|
WorkerPoolImpl |
call()
Create a new
WorkerPoolImpl using the arguments provided to this factory's constructor. |
public WorkerPoolImplFactory(Config config, Collection<String> queues, JobFactory jobFactory, redis.clients.util.Pool<redis.clients.jedis.Jedis> jedisPool)
WorkerPoolImpls will use the provided arguments.config - used to create a connection to Redis and the package prefix for incoming jobsqueues - the list of queues to polljobFactory - the job factory that materializes the jobsjedisPool - the Redis connection poolpublic WorkerPoolImpl call()
WorkerPoolImpl using the arguments provided to this factory's constructor.call in interface Callable<WorkerPoolImpl>WorkerPoolImplCopyright © 2011–2019. All rights reserved.