public static class SendOptions.SendOptionsBuilder extends Object
SendOptions
objects.Modifier and Type | Method and Description |
---|---|
SendOptions |
build() |
SendOptions.SendOptionsBuilder |
setQos(QOS qos)
Sets the quality of service that will be used to send messages to the MQ Light
server.
|
SendOptions.SendOptionsBuilder |
setRetainLink(boolean retainLink)
Set the retainLink option.
|
SendOptions.SendOptionsBuilder |
setTtl(long ttl)
Sets the time to live that will be used for messages sent to the MQ Light server.
|
public SendOptions.SendOptionsBuilder setQos(QOS qos) throws IllegalArgumentException
qos
- The required quality of service. Cannot be null.SendOptionsBuilder
that this method was
called on.IllegalArgumentException
- if an invalid qos
value is specified.public SendOptions.SendOptionsBuilder setTtl(long ttl) throws IllegalArgumentException
ttl
- time to live in milliseconds. This must be a positive value, and a maximum of 4294967295 (0xFFFFFFFF)SendOptionsBuilder
that this method was
called on.IllegalArgumentException
- if an invalid ttl
value is specified.public SendOptions.SendOptionsBuilder setRetainLink(boolean retainLink)
retainLink
- true if the Link should be retained, false to close after message send.SendOptionsBuilder
that this method was
called on.public SendOptions build()
Copyright © 2015 International Business Machines Corporation. All rights reserved.