AsyncQueueConfig

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

Configuration entry for a single RabbitMQ queue.

Author

Elizabeth Paige Harper https://github.com/foxcapades

Since

1.0.0

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.

Constructors

Link copied to clipboard
constructor(id: String, username: String, password: String, host: String)

Constructs a new AsyncQueueConfig instance.

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

Constructs a new AsyncQueueConfig instance.

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

Constructs a new AsyncQueueConfig instance.

Types

Link copied to clipboard
class Builder

Async Queue Config Builder

Link copied to clipboard
object Companion