Package com.github.workerframework.api
Interface WorkerQueueProvider
- All Known Implementing Classes:
RabbitWorkerQueueProvider
public interface WorkerQueueProvider
Boilerplate for retrieving a WorkerQueue implementation.
-
Method Summary
Modifier and TypeMethodDescriptiongetWorkerQueue
(ConfigurationSource configurationSource, int maxTasks) Create a new WorkerQueue instance.
-
Method Details
-
getWorkerQueue
ManagedWorkerQueue getWorkerQueue(ConfigurationSource configurationSource, int maxTasks) throws QueueException Create a new WorkerQueue instance.- Parameters:
configurationSource
- used for configuring the WorkerQueuemaxTasks
- the maximum number of tasks the worker can perform at once- Returns:
- a new WorkerQueue instance
- Throws:
QueueException
- if a WorkerQueue could not be created
-