public static class MqttOptions.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MqttOptions |
build() |
MqttOptions.Builder |
cleanConnection(boolean cleanConnection) |
MqttOptions.Builder |
connectAttemptsMax(long connectAttemptsMax) |
MqttOptions.Builder |
password(String password) |
MqttOptions.Builder |
qos(int qos) |
MqttOptions.Builder |
reconnectAttemptsMax(long reconnectAttemptsMax) |
MqttOptions.Builder |
reconnectBackOffMultiplier(double reconnectBackOffMultiplier) |
MqttOptions.Builder |
reconnectDelay(long reconnectDelay) |
MqttOptions.Builder |
reconnectDelayMax(long reconnectDelayMax) |
MqttOptions.Builder |
topics(List<String> topics) |
MqttOptions.Builder |
url(String url) |
MqttOptions.Builder |
userName(String userName) |
MqttOptions.Builder |
willPayload(String willPayload) |
MqttOptions.Builder |
willQos(int qos) |
MqttOptions.Builder |
willRetain(boolean retain) |
MqttOptions.Builder |
willTopic(String willTopic) |
public MqttOptions.Builder url(String url)
public MqttOptions.Builder topics(List<String> topics)
public MqttOptions.Builder cleanConnection(boolean cleanConnection)
public MqttOptions.Builder willTopic(String willTopic)
public MqttOptions.Builder willPayload(String willPayload)
public MqttOptions.Builder willRetain(boolean retain)
public MqttOptions.Builder willQos(int qos)
public MqttOptions.Builder reconnectDelay(long reconnectDelay)
public MqttOptions.Builder reconnectDelayMax(long reconnectDelayMax)
public MqttOptions.Builder reconnectBackOffMultiplier(double reconnectBackOffMultiplier)
public MqttOptions.Builder reconnectAttemptsMax(long reconnectAttemptsMax)
public MqttOptions.Builder connectAttemptsMax(long connectAttemptsMax)
public MqttOptions.Builder userName(String userName)
public MqttOptions.Builder password(String password)
public MqttOptions.Builder qos(int qos)
public MqttOptions build()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.