public static class QueueOptions.Builder extends Object
QueueOptions
with custom settings.Modifier and Type | Method and Description |
---|---|
QueueOptions |
build()
Returns queue options based on this object properties.
|
QueueOptions.Builder |
merge(QueueOptions options)
"Merges" another 'QueueOptions' into this builder, by invoking setF(options.getF()) for
all fields 'F' for which 'options.hasF()' is true.
|
QueueOptions.Builder |
setConsumerPriority(int consumerPriority)
Sets priority of a consumer with respect to delivery of messages.
|
QueueOptions.Builder |
setMaxUnconfirmedBytes(long maxUnconfirmedBytes)
Sets maximum accumulated bytes of all outstanding messages that can be sent by the broker
without being confirmed.
|
QueueOptions.Builder |
setMaxUnconfirmedMessages(long maxUnconfirmedMessages)
Sets maximum number of outstanding messages that can be sent by the broker without being
confirmed.
|
QueueOptions.Builder |
setSuspendsOnBadHostHealth(boolean suspendsOnBadHostHealth)
Sets whether queue should suspend when the host machine is unhealthy.
|
public QueueOptions build()
public QueueOptions.Builder setMaxUnconfirmedMessages(long maxUnconfirmedMessages)
maxUnconfirmedMessages
- maximum number of outstanding messagespublic QueueOptions.Builder setMaxUnconfirmedBytes(long maxUnconfirmedBytes)
maxUnconfirmedBytes
- maximum accumulated bytes of all outstanding messages without
being confirmedpublic QueueOptions.Builder setConsumerPriority(int consumerPriority)
consumerPriority
- priority of a consumerpublic QueueOptions.Builder setSuspendsOnBadHostHealth(boolean suspendsOnBadHostHealth)
suspendsOnBadHostHealth
- specifies whether queue suspends operation when host is
unhealthypublic QueueOptions.Builder merge(QueueOptions options)
options
- specifies options which is merged into the builderCopyright © 2023 Bloomberg L.P.. All rights reserved.