public static final class MqttMessageBuilders.PublishBuilder extends Object
Modifier and Type | Method and Description |
---|---|
MqttPublishMessage |
build() |
MqttMessageBuilders.PublishBuilder |
messageId(int messageId) |
MqttMessageBuilders.PublishBuilder |
payload(ByteBuf payload) |
MqttMessageBuilders.PublishBuilder |
qos(MqttQoS qos) |
MqttMessageBuilders.PublishBuilder |
retained(boolean retained) |
MqttMessageBuilders.PublishBuilder |
topicName(String topic) |
public MqttMessageBuilders.PublishBuilder topicName(String topic)
public MqttMessageBuilders.PublishBuilder retained(boolean retained)
public MqttMessageBuilders.PublishBuilder qos(MqttQoS qos)
public MqttMessageBuilders.PublishBuilder payload(ByteBuf payload)
public MqttMessageBuilders.PublishBuilder messageId(int messageId)
public MqttPublishMessage build()
Copyright © 2008–2017 The Netty Project. All rights reserved.