You're viewing archived documentation for @imqueue/core v2.0.26. APIs may differ from the current release. View the latest version ↗

IMQOptions interface

Message queue options

Signature:

export interface IMQOptions extends Partial<IMessageQueueConnection> 

Extends: Partial<IMessageQueueConnection>

Properties

Property

Modifiers

Type

Description

cleanup

boolean

Turns on/off cleanup of the message queues

{boolean}

cleanupFilter

string

Defines cleanup pattern for the name of the queue which should be removed during cleanup processing

{string}

cluster?

IMessageQueueConnection[]

(Optional) Queue cluster instances, if MQ should be clustered

{IMessageQueueConnection[]}

clusterManagers?

ClusterManager[]

(Optional) Array of cluster managers used to handle cluster operations. Any manager implements specific cluster server detection.

{ClusterManager[]}

logger?

ILogger

(Optional) Logger defined to be used within message queue in runtime

{ILogger}

prefix?

string

(Optional) Message queue global key prefix (namespace)

{string}

safeDelivery?

boolean

(Optional) Enables/disables safe message delivery. When safe message delivery is turned on it will use more complex algorithm for message handling by a worker process, guaranteeing that if worker fails the message will be delivered to another possible worker anyway. In most cases it is not required unless it is required by a system design.

{boolean}

safeDeliveryTtl?

number

(Optional) Time-to-live of worker queues (after this time messages are back to main queue for handling if worker died). Only works if safeDelivery option enabled.

{number}

useGzip?

boolean

(Optional) A way to serialize message using compression. Will increase load to worker process but can decrease network traffic between worker and queue host application

{boolean}

vendor?

string

(Optional) Message queue vendor

{string}

verbose?

boolean

(Optional) Enables/disables verbose logging

false {boolean}

verboseExtended?

boolean

(Optional) Enables/disables extended verbose logging. The output may contain sensitive information, so use it with caution. Does not work if a verbose option is disabled.

false {boolean}

watcherCheckDelay?

number

(Optional) Watcher check delay period. This is used by a queue watcher agent to make sure at least one watcher is available for queue operations.

{number}