public static final class MqttMessageBuilders.ConnectBuilder
extends java.lang.Object
public MqttMessageBuilders.ConnectBuilder protocolVersion(MqttVersion version)
public MqttMessageBuilders.ConnectBuilder clientId(java.lang.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(java.lang.String willTopic)
@Deprecated public MqttMessageBuilders.ConnectBuilder willMessage(java.lang.String willMessage)
willMessage(byte[])
public MqttMessageBuilders.ConnectBuilder willMessage(byte[] willMessage)
public MqttMessageBuilders.ConnectBuilder willRetain(boolean willRetain)
public MqttMessageBuilders.ConnectBuilder hasUser(boolean value)
public MqttMessageBuilders.ConnectBuilder hasPassword(boolean value)
public MqttMessageBuilders.ConnectBuilder username(java.lang.String username)
@Deprecated public MqttMessageBuilders.ConnectBuilder password(java.lang.String password)
password(byte[])
instead
public MqttMessageBuilders.ConnectBuilder password(byte[] password)
public MqttConnectMessage build()
Copyright © 2008–2018 The Netty Project. All rights reserved.