public static class MqttConfig.ClientConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MqttConfig.ClientConfig.PoolConfig |
static class |
MqttConfig.ClientConfig.ReconnectionMode
Different reconnection modes when the connection is lost:
NONE: no reconnection.
ALWAYS: try to reconnect if connection is lost.
CUSTOM: Custom
MqttPublishHandler is call.
|
Constructor and Description |
---|
ClientConfig() |
Modifier and Type | Method and Description |
---|---|
String |
getClientId() |
org.eclipse.paho.client.mqttv3.MqttConnectOptions |
getConnectOptions() |
MqttConfig.ClientConfig.PoolConfig |
getPoolConfig() |
int |
getReconnectionInterval() |
MqttConfig.ClientConfig.ReconnectionMode |
getReconnectionMode() |
String |
getServerUri() |
MqttConfig.ClientConfig |
setClientId(String clientId) |
MqttConfig.ClientConfig |
setConnectOptions(org.eclipse.paho.client.mqttv3.MqttConnectOptions connectOptions) |
MqttConfig.ClientConfig |
setReconnectionInterval(int reconnectionInterval) |
MqttConfig.ClientConfig |
setReconnectionMode(MqttConfig.ClientConfig.ReconnectionMode reconnectionMode) |
MqttConfig.ClientConfig |
setServerUri(String serverUri) |
public String getServerUri()
public MqttConfig.ClientConfig setServerUri(String serverUri)
public String getClientId()
public MqttConfig.ClientConfig setClientId(String clientId)
public MqttConfig.ClientConfig.ReconnectionMode getReconnectionMode()
public MqttConfig.ClientConfig setReconnectionMode(MqttConfig.ClientConfig.ReconnectionMode reconnectionMode)
public int getReconnectionInterval()
public MqttConfig.ClientConfig setReconnectionInterval(int reconnectionInterval)
public org.eclipse.paho.client.mqttv3.MqttConnectOptions getConnectOptions()
public MqttConfig.ClientConfig setConnectOptions(org.eclipse.paho.client.mqttv3.MqttConnectOptions connectOptions)
public MqttConfig.ClientConfig.PoolConfig getPoolConfig()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.