public static class MQTT3MessageAttributes.Builder extends Object
MQTT3MessageAttributes instance.| Modifier and Type | Method and Description |
|---|---|
MQTT3MessageAttributes |
build() |
static MQTT3MessageAttributes.Builder |
newInstance() |
MQTT3MessageAttributes.Builder |
withDuplicate(boolean isDuplicate)
Sets the duplicate flag for the
MQTT3MessageAttributes instance. |
MQTT3MessageAttributes.Builder |
withMessageId(int id)
Sets a message id for the
MQTT3MessageAttributes instance. |
MQTT3MessageAttributes.Builder |
withQoS(int qos)
Sets a qos for the
MQTT3MessageAttributes instance. |
MQTT3MessageAttributes.Builder |
withRetained(boolean isRetained)
Sets the retained flag for the
MQTT3MessageAttributes instance. |
MQTT3MessageAttributes.Builder |
withTopic(String topic)
Sets a topic for the
MQTT3MessageAttributes instance. |
public static MQTT3MessageAttributes.Builder newInstance()
public MQTT3MessageAttributes.Builder withTopic(String topic)
MQTT3MessageAttributes instance.topic - the message's topicpublic MQTT3MessageAttributes.Builder withQoS(int qos)
MQTT3MessageAttributes instance.qos - the message's qospublic MQTT3MessageAttributes.Builder withMessageId(int id)
MQTT3MessageAttributes instance.id - the message's idpublic MQTT3MessageAttributes.Builder withRetained(boolean isRetained)
MQTT3MessageAttributes instance.isRetained - the message's retained flag.public MQTT3MessageAttributes.Builder withDuplicate(boolean isDuplicate)
MQTT3MessageAttributes instance.isDuplicate - the message's duplicate flag.public MQTT3MessageAttributes build()
MQTT3MessageAttributes instance.Copyright © 2025 MuleSoft, Inc.. All rights reserved.