Interface Mqtt5UnsubscribeBuilderBase<C extends Mqtt5UnsubscribeBuilderBase.Complete<C>>
- Type Parameters:
C- the type of the complete builder.
- All Known Subinterfaces:
Mqtt5UnsubscribeBuilder,Mqtt5UnsubscribeBuilder.Complete,Mqtt5UnsubscribeBuilder.Nested<P>,Mqtt5UnsubscribeBuilder.Nested.Complete<P>,Mqtt5UnsubscribeBuilder.Nested.Start<P>,Mqtt5UnsubscribeBuilder.Send<P>,Mqtt5UnsubscribeBuilder.Send.Complete<P>,Mqtt5UnsubscribeBuilder.Send.Start<P>,Mqtt5UnsubscribeBuilder.Start,Mqtt5UnsubscribeBuilderBase.Complete<C>,Mqtt5UnsubscribeBuilderBase.Start<C>
@DoNotImplement
public interface Mqtt5UnsubscribeBuilderBase<C extends Mqtt5UnsubscribeBuilderBase.Complete<C>>
Builder base for a
Mqtt5Unsubscribe.- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceMqtt5UnsubscribeBuilderBasethat is complete which means all mandatory fields are set.static interfaceMqtt5UnsubscribeBuilderBasethat provides additional methods for the first Topic Filter. -
Method Summary
Modifier and TypeMethodDescription@NotNull MqttTopicFilterBuilder.Nested<? extends C> Fluent counterpart ofaddTopicFilter(MqttTopicFilter).addTopicFilter(@NotNull MqttTopicFilter topicFilter) Adds aTopic Filterto thelist of Topic Filters.addTopicFilter(@NotNull String topicFilter) Adds aTopic Filterto thelist of Topic Filters.addTopicFilters(@NotNull MqttTopicFilter @NotNull ... topicFilters) AddsTopic Filtersto thelist of Topic Filters.addTopicFilters(@NotNull Collection<@NotNull ? extends MqttTopicFilter> topicFilters) Adds a collection ofTopic Filtersto thelist of Topic Filters.addTopicFilters(@NotNull Stream<@NotNull ? extends MqttTopicFilter> topicFilters) Adds a stream ofTopic Filtersto thelist of Topic Filters.reverse(@NotNull Mqtt5Subscribe subscribe) Reverses the subscriptions of a Subscribe message by adding their Topic Filters.
-
Method Details
-
addTopicFilter
Adds aTopic Filterto thelist of Topic Filters. At least one Topic Filter is mandatory.- Parameters:
topicFilter- the string representation of the Topic Filter.- Returns:
- the builder that is now complete as at least one Topic Filter is set.
-
addTopicFilter
Adds aTopic Filterto thelist of Topic Filters. At least one Topic Filter is mandatory.- Parameters:
topicFilter- the Topic Filter.- Returns:
- the builder that is now complete as at least one Topic Filter is set.
-
addTopicFilter
Fluent counterpart ofaddTopicFilter(MqttTopicFilter).Calling
MqttTopicFilterBuilder.Nested.End.applyTopicFilter()on the returned builder has the same effect as callingaddTopicFilter(MqttTopicFilter)with the result ofMqttTopicFilterBuilder.End.build().- Returns:
- the fluent builder for the Topic Filter.
- See Also:
-
addTopicFilters
@CheckReturnValue @NotNull C addTopicFilters(@NotNull @NotNull MqttTopicFilter @NotNull ... topicFilters) AddsTopic Filtersto thelist of Topic Filters. At least one Topic Filter is mandatory.- Parameters:
topicFilters- the Topic Filters.- Returns:
- the builder that is now complete as at least one Topic Filter is set.
- Since:
- 1.2
-
addTopicFilters
@CheckReturnValue @NotNull C addTopicFilters(@NotNull @NotNull Collection<@NotNull ? extends MqttTopicFilter> topicFilters) Adds a collection ofTopic Filtersto thelist of Topic Filters. At least one Topic Filter is mandatory.- Parameters:
topicFilters- the collection of Topic Filters.- Returns:
- the builder that is now complete as at least one Topic Filter is set.
- Since:
- 1.2
-
addTopicFilters
@CheckReturnValue @NotNull C addTopicFilters(@NotNull @NotNull Stream<@NotNull ? extends MqttTopicFilter> topicFilters) Adds a stream ofTopic Filtersto thelist of Topic Filters. At least one Topic Filter is mandatory.- Parameters:
topicFilters- the stream of Topic Filters.- Returns:
- the builder that is now complete as at least one Topic Filter is set.
- Since:
- 1.2
-
reverse
Reverses the subscriptions of a Subscribe message by adding their Topic Filters.- Parameters:
subscribe- the Subscribe message.- Returns:
- the builder that is now complete as at least one Topic Filter is set.
-