Package com.github.workerframework.api
Interface ManagedWorkerQueue
- All Superinterfaces:
HealthReporter,WorkerQueue
- All Known Implementing Classes:
RabbitWorkerQueue
A WorkerQueue for use at an application level, supporting management methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoidDisconnects the incoming queue so that no more tasks are consumed.voidReconnects the incoming queue so tasks consumption can resume.voidshutdown()Terminate all queue operations.voidHalt the incoming queue so that no more tasks are picked up.voidstart(TaskCallback callback) Open queues to start accepting tasks and results.Methods inherited from interface com.github.cafapi.common.api.HealthReporter
healthCheck, livenessCheckMethods inherited from interface com.github.workerframework.api.WorkerQueue
acknowledgeTask, discardTask, getInputQueue, getPausedQueue, publish, publish, rejectTask
-
Method Details
-
start
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
WorkerQueueMetricsReporter 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.
-