IMQService class
Class IMQService Basic abstract service (server-side) implementation
Signature:
export declare abstract class IMQService
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructs a service. |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
The cache adapter used by cached methods. | ||
|
|
IMessageQueue |
The underlying message queue this service consumes requests from. | |
|
|
ILogger |
The effective logger — | |
|
|
Server<any, any> |
(Optional) The metrics HTTP server, present only while IMQMetricsServerOptions.enabled is set. | |
|
string |
This service's name, which is also its queue name and the key its description is cached under. | ||
|
The effective options for this service: DEFAULT_IMQ_SERVICE_OPTIONS merged with the values passed to the constructor. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Returns this service's description metadata — the exposed method list plus the registered complex types — synchronously. | ||
|
Removes this instance's signal handlers, then unsubscribes and destroys the underlying queue. | ||
|
Broadcasts data on this service's pub/sub channel, delivering it to every client currently subscribed to this service. | ||
|
Initializes this instance of service and starts handling request messages. | ||
|
Stops consuming messages from the queue. |
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.