Creates a new router instance.
Checks if the router is active.
true if the router is active, false otherwise.
Activates the router.
Once activated, processors can be retrieved but not added.
This router for method chaining.
Adds a processor for a specific queue and job.
Processors can only be added before the router is activated.
The processor spec object.
The processor action function.
This router for method chaining.
Retrieves a processor for a specific queue and job.
Processors can only be retrieved after the router is activated.
The name of the queue.
The name of the job.
The processor function.
StaticregisterRegisters the router as a singleton in the DI container.
The DI container to register in.
StaticresolveResolves the router from the DI container.
The DI container to resolve from.
The router instance.
Represents the consumer router.
The router acts as root of a consumer and handles the routing jobs to their respective processors.