Interface Mqtt3UnsubscribeBuilderBase<C extends Mqtt3UnsubscribeBuilderBase<C>>
- Type Parameters:
C- the type of the complete builder.
- All Known Subinterfaces:
Mqtt3UnsubscribeBuilder,Mqtt3UnsubscribeBuilder.Complete,Mqtt3UnsubscribeBuilder.Nested<P>,Mqtt3UnsubscribeBuilder.Nested.Complete<P>,Mqtt3UnsubscribeBuilder.Nested.Start<P>,Mqtt3UnsubscribeBuilder.Send<P>,Mqtt3UnsubscribeBuilder.Send.Complete<P>,Mqtt3UnsubscribeBuilder.Send.Start<P>,Mqtt3UnsubscribeBuilder.SendVoid,Mqtt3UnsubscribeBuilder.SendVoid.Complete,Mqtt3UnsubscribeBuilder.SendVoid.Start,Mqtt3UnsubscribeBuilder.Start,Mqtt3UnsubscribeBuilderBase.Start<C>
@DoNotImplement
public interface Mqtt3UnsubscribeBuilderBase<C extends Mqtt3UnsubscribeBuilderBase<C>>
Builder base for a
Mqtt3Unsubscribe.- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceMqtt3UnsubscribeBuilderBasethat 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 Mqtt3Subscribe 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.
-