Interface ManagedWorkerQueue

All Superinterfaces:
HealthReporter, WorkerQueue
All Known Implementing Classes:
RabbitWorkerQueue

public interface ManagedWorkerQueue extends HealthReporter, WorkerQueue
A WorkerQueue for use at an application level, supporting management methods.
  • Method Details

    • start

      void start(TaskCallback callback) throws QueueException
      Open queues to start accepting tasks and results.
      Parameters:
      callback - the callback to use when registering or aborting tasks
      Throws:
      QueueException - if the queue cannot be started
    • shutdownIncoming

      void shutdownIncoming()
      Halt the incoming queue so that no more tasks are picked up.
    • shutdown

      void shutdown()
      Terminate all queue operations.
    • getMetrics

      Returns:
      the metrics implementation for this WorkerQueue
    • disconnectIncoming

      void disconnectIncoming()
      Disconnects the incoming queue so that no more tasks are consumed.
    • reconnectIncoming

      void reconnectIncoming()
      Reconnects the incoming queue so tasks consumption can resume.