Class AsyncQueueConfig.Builder
-
- All Implemented Interfaces:
public final class AsyncQueueConfig.BuilderAsync Queue Config Builder
Builder class for constructing a new AsyncQueueConfig instance.
- Since:
1.0.0
Elizabeth Paige Harper https://github.com/foxcapades
-
-
Constructor Summary
Constructors Constructor Description AsyncQueueConfig.Builder()
-
Method Summary
Modifier and Type Method Description final StringgetId()Unique identifier for the queue. final UnitsetId(String id)Unique identifier for the queue. final StringgetUsername()RabbitMQ credentials username. final UnitsetUsername(String username)RabbitMQ credentials username. final StringgetPassword()RabbitMQ credentials password. final UnitsetPassword(String password)RabbitMQ credentials password. final StringgetHost()Hostname for the target RabbitMQ instance. final UnitsetHost(String host)Hostname for the target RabbitMQ instance. final IntegergetPort()Port number for connecting to the target RabbitMQ instance. final UnitsetPort(Integer port)Port number for connecting to the target RabbitMQ instance. final IntegergetWorkers()Number of worker threads to be used by consumers of the target queue. final UnitsetWorkers(Integer workers)Number of worker threads to be used by consumers of the target queue. final AsyncQueueConfig.Builderid(String id)Sets the unique identifier for the queue. final AsyncQueueConfig.Builderusername(String username)Sets the RabbitMQ credentials username for the queue. final AsyncQueueConfig.Builderpassword(String password)Sets the RabbitMQ credentials password for the queue. final AsyncQueueConfig.Builderhost(String host)Sets the RabbitMQ hostname for the queue. final AsyncQueueConfig.Builderport(Integer port)Sets the RabbitMQ host port for the queue. final AsyncQueueConfig.Builderworkers(Integer workers)Sets the number of worker threads to use as consumers for this queue. final AsyncQueueConfigbuild()-
-
Method Detail
-
getId
final String getId()
Unique identifier for the queue.
This value will be used to reference the queue when submitting jobs to it.
-
setId
final Unit setId(String id)
Unique identifier for the queue.
This value will be used to reference the queue when submitting jobs to it.
-
getUsername
final String getUsername()
RabbitMQ credentials username.
-
setUsername
final Unit setUsername(String username)
RabbitMQ credentials username.
-
getPassword
final String getPassword()
RabbitMQ credentials password.
-
setPassword
final Unit setPassword(String password)
RabbitMQ credentials password.
-
getPort
final Integer getPort()
Port number for connecting to the target RabbitMQ instance.
Default value is
5672.
-
setPort
final Unit setPort(Integer port)
Port number for connecting to the target RabbitMQ instance.
Default value is
5672.
-
getWorkers
final Integer getWorkers()
Number of worker threads to be used by consumers of the target queue.
Default value is
5.
-
setWorkers
final Unit setWorkers(Integer workers)
Number of worker threads to be used by consumers of the target queue.
Default value is
5.
-
id
final AsyncQueueConfig.Builder id(String id)
Sets the unique identifier for the queue.
-
username
final AsyncQueueConfig.Builder username(String username)
Sets the RabbitMQ credentials username for the queue.
-
password
final AsyncQueueConfig.Builder password(String password)
Sets the RabbitMQ credentials password for the queue.
-
host
final AsyncQueueConfig.Builder host(String host)
Sets the RabbitMQ hostname for the queue.
-
port
final AsyncQueueConfig.Builder port(Integer port)
Sets the RabbitMQ host port for the queue.
-
workers
final AsyncQueueConfig.Builder workers(Integer workers)
Sets the number of worker threads to use as consumers for this queue.
-
build
final AsyncQueueConfig build()
-
-
-
-