Options
Configuration options for a message queue consumer.
Throws
Thrown if any of the validation conditions for the properties are violated: - queue must not be empty or blank. - prefetch must be greater than 0. - vt duration must be at least 1 second. - queueMinPullDelay and queueMaxPullDelay must be positive, and queueMinPullDelay must be less than queueMaxPullDelay. - messageRetryDelayStep and messageMaxRetryDelay must be positive, and messageRetryDelayStep must be less than messageMaxRetryDelay.
Constructors
Properties
Determines whether insertion notifications are enabled for the queue. Defaults to false.
The channel used for listening to insertion notifications. Derived from the queue name and formatted as "pgmq.q_
The maximum retry delay for a message. Must be positive. Defaults to 60 seconds.
The incremental delay applied before retrying a message. Must be positive and less than messageMaxRetryDelay. Defaults to 500 milliseconds.
The maximum delay between consecutive pull operations from the queue. Must be positive and greater than queueMinPullDelay. Defaults to 2 seconds.
The minimum delay between consecutive pull operations from the queue. Must be positive and less than queueMaxPullDelay. Defaults to 50 milliseconds.