public abstract static class MqttClient.Builder<T extends MqttClient.Builder<T>> extends AbstractClient.Builder<T>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
URI |
broker() |
T |
broker(String broker) |
T |
broker(URI broker) |
String |
clientId() |
T |
clientId(String clientId) |
BinaryPayloadCodec |
codec() |
T |
codec(BinaryPayloadCodec codec) |
Object |
credentials() |
T |
credentials(Credentials.UserAndPassword userAndPassword) |
MqttNamespace |
namespace() |
T |
namespace(MqttNamespace namespace) |
builder, module, modules
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build
public Builder()
public T codec(BinaryPayloadCodec codec)
public BinaryPayloadCodec codec()
public T namespace(MqttNamespace namespace)
public MqttNamespace namespace()
public T credentials(Credentials.UserAndPassword userAndPassword)
public T broker(String broker) throws URISyntaxException
URISyntaxException
public T broker(URI broker) throws URISyntaxException
URISyntaxException
public Object credentials()
Copyright © 2017. All rights reserved.