Interface Mqtt5Subscription
Subscription in an
MQTT 5 Subscribe message.- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanThe default for whether the client must not receive messages published by itself.DefaultQoSlevel of a Subscription.static final booleanThe default for whether the retain flag for incoming Publish messages must be set to its original value.static final @NotNull Mqtt5RetainHandlingThe default handling of retained message. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Mqtt5SubscriptionBuilderbuilder()Creates a builder for a Subscription.extend()Creates a builder for extending this Subscription.getQos()booleanboolean
-
Field Details
-
DEFAULT_QOS
DefaultQoSlevel of a Subscription. It is chosen asMqttQos.EXACTLY_ONCEas this leeds to subscribed Publish messages being delivered with its initialQoSlevel. -
DEFAULT_NO_LOCAL
static final boolean DEFAULT_NO_LOCALThe default for whether the client must not receive messages published by itself.- See Also:
-
DEFAULT_RETAIN_HANDLING
The default handling of retained message. -
DEFAULT_RETAIN_AS_PUBLISHED
static final boolean DEFAULT_RETAIN_AS_PUBLISHEDThe default for whether the retain flag for incoming Publish messages must be set to its original value.- See Also:
-
-
Method Details
-
builder
Creates a builder for a Subscription.- Returns:
- the created builder.
-
getTopicFilter
- Returns:
- the Topic Filter of this Subscription.
-
getQos
- Returns:
- the QoS of this Subscription.
-
isNoLocal
boolean isNoLocal()- Returns:
- whether the client must not receive messages published by itself. The default is
DEFAULT_NO_LOCAL.
-
getRetainHandling
- Returns:
- the handling of retained message for this Subscription. The default is
DEFAULT_RETAIN_HANDLING.
-
isRetainAsPublished
boolean isRetainAsPublished()- Returns:
- whether the retain flag for incoming Publish messages must be set to its original value.
-
extend
Creates a builder for extending this Subscription.- Returns:
- the created builder.
- Since:
- 1.1
-