Package com.codeheadsystems.queue.impl
Class QueueProcessor
java.lang.Object
com.codeheadsystems.queue.impl.QueueProcessor
- All Implemented Interfaces:
io.dropwizard.lifecycle.Managed
The Queue Processor. Reads the queues and creates workers for the messages.
-
Constructor Summary
ConstructorsConstructorDescriptionQueueProcessor(MessageManager messageManager, QueueConfigurationFactory queueConfigurationFactory, MessageConsumerExecutor messageConsumerExecutor, com.codeheadsystems.metrics.Metrics metrics) Instantiates a new Queue processor. -
Method Summary
-
Constructor Details
-
QueueProcessor
@Inject public QueueProcessor(MessageManager messageManager, QueueConfigurationFactory queueConfigurationFactory, MessageConsumerExecutor messageConsumerExecutor, com.codeheadsystems.metrics.Metrics metrics) Instantiates a new Queue processor.- Parameters:
messageManager- the messageManagerqueueConfigurationFactory- the queue configuration factorymessageConsumerExecutor- the message consumer executormetrics- the metrics
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceio.dropwizard.lifecycle.Managed
-
processPendingQueue
public void processPendingQueue()Process pending queue. -
stop
- Specified by:
stopin interfaceio.dropwizard.lifecycle.Managed- Throws:
Exception
-