public class SendOptions extends Object
NonBlockingClient
NonBlockingClient.send(String, java.nio.ByteBuffer, Map, SendOptions, CompletionListener, Object)
and
NonBlockingClient.send(String, String, Map, SendOptions, CompletionListener, Object)
methods. For example:
SendOptions opts = SendOptions.builder().setQos(QOS.AT_LEAST_ONCE).setTtl(5000).build(); client.send("/tadpoles", "Hello baby frogs!", opts, listener, null);
Modifier and Type | Class and Description |
---|---|
static class |
SendOptions.SendOptionsBuilder
A builder for
SendOptions objects. |
Modifier and Type | Method and Description |
---|---|
static SendOptions.SendOptionsBuilder |
builder() |
QOS |
getQos() |
boolean |
getRetainLink() |
long |
getTtl() |
String |
toString() |
public final QOS getQos()
public final long getTtl()
public final boolean getRetainLink()
public static SendOptions.SendOptionsBuilder builder()
SendOptionsBuilder
that can be used to build
(immutable) instances of SendOptions
.Copyright © 2015 International Business Machines Corporation. All rights reserved.