Class AsyncQueueConfig
-
- All Implemented Interfaces:
public final class AsyncQueueConfigConfiguration entry for a single RabbitMQ queue.
- Since:
1.0.0
Elizabeth Paige Harper https://github.com/foxcapades
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAsyncQueueConfig.BuilderAsync Queue Config Builder
Builder class for constructing a new AsyncQueueConfig instance.
-
Constructor Summary
Constructors Constructor Description AsyncQueueConfig(String id, String username, String password, String host)Constructs a new AsyncQueueConfig instance. AsyncQueueConfig(String id, String username, String password, String host, Integer workers)Constructs a new AsyncQueueConfig instance. AsyncQueueConfig(String id, String username, String password, String host, Integer port, Integer workers)Constructs a new AsyncQueueConfig instance.
-
Method Summary
Modifier and Type Method Description final static AsyncQueueConfig.Builderbuilder()final static AsyncQueueConfigbuild(Function1<AsyncQueueConfig.Builder, Unit> fn)-
-
Constructor Detail
-
AsyncQueueConfig
AsyncQueueConfig(String id, String username, String password, String host)
Constructs a new AsyncQueueConfig instance.- Parameters:
id- Unique identifier for the queue.username- RabbitMQ credentials username.password- RabbitMQ credentials password.host- Hostname for the target RabbitMQ instance.
-
AsyncQueueConfig
AsyncQueueConfig(String id, String username, String password, String host, Integer workers)
Constructs a new AsyncQueueConfig instance.- Parameters:
id- Unique identifier for the queue.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.
-
AsyncQueueConfig
AsyncQueueConfig(String id, String username, String password, String host, Integer port, Integer workers)
Constructs a new AsyncQueueConfig instance.- Parameters:
id- Unique identifier for the queue.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.workers- Number of worker threads to be used by consumers of the target queue.
-
-
Method Detail
-
builder
final static AsyncQueueConfig.Builder builder()
-
build
final static AsyncQueueConfig build(Function1<AsyncQueueConfig.Builder, Unit> fn)
-
-
-
-