public static final class MqttMessageBuilders.ConnectBuilder extends Object
public MqttMessageBuilders.ConnectBuilder protocolVersion(MqttVersion version)
public MqttMessageBuilders.ConnectBuilder clientId(String clientId)
public MqttMessageBuilders.ConnectBuilder cleanSession(boolean cleanSession)
public MqttMessageBuilders.ConnectBuilder keepAlive(int keepAliveSecs)
public MqttMessageBuilders.ConnectBuilder willFlag(boolean willFlag)
public MqttMessageBuilders.ConnectBuilder willQoS(MqttQoS willQos)
public MqttMessageBuilders.ConnectBuilder willTopic(String willTopic)
@Deprecated public MqttMessageBuilders.ConnectBuilder willMessage(String willMessage)
willMessage(byte[])
insteadpublic MqttMessageBuilders.ConnectBuilder willMessage(byte[] willMessage)
public MqttMessageBuilders.ConnectBuilder willRetain(boolean willRetain)
public MqttMessageBuilders.ConnectBuilder willProperties(MqttProperties willProperties)
public MqttMessageBuilders.ConnectBuilder hasUser(boolean value)
public MqttMessageBuilders.ConnectBuilder hasPassword(boolean value)
public MqttMessageBuilders.ConnectBuilder username(String username)
@Deprecated public MqttMessageBuilders.ConnectBuilder password(String password)
password(byte[])
insteadpublic MqttMessageBuilders.ConnectBuilder password(byte[] password)
public MqttMessageBuilders.ConnectBuilder properties(MqttProperties properties)
public MqttConnectMessage build()
Copyright © 2008–2024 The Netty Project. All rights reserved.