IMQServiceOptions interface

Options accepted by an IMQ service.

Signature:

export interface IMQServiceOptions extends IMQOptions 

Extends: IMQOptions

Remarks

Extends the core queue options, so all transport settings — host, port, prefix, safeDelivery, useGzip, cluster, logger and the rest — are accepted and forwarded to the queue factory.

Properties

Property

Modifiers

Type

Description

afterCall?

IMQAfterCall<IMQService>

(Optional) Post-response hook. See IMQAfterCall.

beforeCall?

IMQBeforeCall<IMQService>

(Optional) Pre-dispatch hook. See IMQBeforeCall.

childrenPerCore

number

Workers to fork per CPU core. Ignored unless IMQServiceOptions.multiProcess is true.

metricsServer?

IMQMetricsServerOptions

(Optional) Built-in metrics HTTP listener settings.

multiProcess

boolean

Fork one cluster worker per CPU core, multiplied by IMQServiceOptions.childrenPerCore.

wrapCall?

IMQWrapCall<IMQService>

(Optional) Around hook wrapping the method invocation. See IMQWrapCall.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.