The default connection name.
Resolve a connection by name (defaults to the default connection).
Optionalname: string
The connection name.
The resolved QueueConnection.
Dispatch a job on the default connection.
The job name.
The job payload.
Optionaloptions: JobOptions
Dispatch options.
The job id.
Whether a connection (instance or factory) is registered under the name.
The connection name.
True if registered.
Register a ready-made connection instance.
The connection name.
The connection instance.
This manager for chaining.
Register a lazy factory for a connection (built on first access).
The connection name.
The connection factory.
This manager for chaining.
Set the default connection name.
The connection name.
This manager for chaining.
StaticcreateCreate a QueueManager.
The default connection name.
A new manager.
StaticgetThe process-wide default manager, if the queue module has been booted.
The manager, or undefined.
StaticsetRegister (or replace) the process-wide default manager.
Optionalmanager: QueueManager
The manager (or undefined to clear).
Multi-connection queue registry.
Application code resolves a connection by name (
queueManager.connection('redis')) and talks to it through the agnostic QueueConnection contract. A process-wide default instance lets thedispatch()helper and the worker reach it without wiring.