AsyncQueueConfig

constructor(id: String, username: String, password: String, host: String)

Constructs a new AsyncQueueConfig instance.

The port and workers properties will be assigned default values.

Parameters

id

Unique identifier for the queue.

This value will be used to reference the queue when submitting jobs to it.

username

RabbitMQ credentials username.

password

RabbitMQ credentials password.

host

Hostname for the target RabbitMQ instance.


constructor(id: String, username: String, password: String, host: String, workers: Int)

Constructs a new AsyncQueueConfig instance.

The port property will be assigned a default value.

Parameters

id

Unique identifier for the queue.

This value will be used to reference the queue when submitting jobs to it.

username

RabbitMQ credentials username.

password

RabbitMQ credentials password.

host

Hostname for the target RabbitMQ instance.

workers

Number of worker threads to be used by consumers of the target queue.

Default value is 5.


constructor(id: String, username: String, password: String, host: String, port: Int, workers: Int)

Constructs a new AsyncQueueConfig instance.

Parameters

id

Unique identifier for the queue.

This value will be used to reference the queue when submitting jobs to it.

username

RabbitMQ credentials username.

password

RabbitMQ credentials password.

host

Hostname for the target RabbitMQ instance.

port

Port number for connecting to the target RabbitMQ instance.

Default value is 5672.

workers

Number of worker threads to be used by consumers of the target queue.

Default value is 5.