Get all consumers that can handle a specific message type
Returns consumers that either:
The message type to find consumers for
Array of consumers that can handle this message type
Get all registered message types
Array of message types with registered consumers
Check if any consumers can handle a message type
The message type to check
true if at least one consumer can handle this type
Register a queue consumer
Indexes the consumer by each of its declared message types.
Queue consumer to register
Consumer Registry
Singleton service that holds all registered queue consumers indexed by message type. Consumers declare the message types they handle, and this registry routes messages to the appropriate consumers based on their types.
Message-Type Routing:
messageTypesarray (e.g.,['email.send', 'email.batch.send'])'*'as a wildcard to handle all message typesExample: Consumer registration