Class BroadcastHelper
- java.lang.Object
-
- io.smallrye.reactive.messaging.providers.helpers.BroadcastHelper
-
public class BroadcastHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.smallrye.mutiny.Multi<? extends Message<?>>
broadcastPublisher(io.smallrye.mutiny.Multi<? extends Message<?>> publisher, int numberOfSubscriberBeforeConnecting)
Wraps an existingPublisher
for broadcasting.
-
-
-
Method Detail
-
broadcastPublisher
public static io.smallrye.mutiny.Multi<? extends Message<?>> broadcastPublisher(io.smallrye.mutiny.Multi<? extends Message<?>> publisher, int numberOfSubscriberBeforeConnecting)
Wraps an existing
Publisher
for broadcasting.- Parameters:
publisher
- The publisher to be wrappednumberOfSubscriberBeforeConnecting
- Number of subscribers that must be present before broadcast occurs. A value of 0 means any number of subscribers will trigger the broadcast.- Returns:
- The wrapped
Publisher
in a newPublisherBuilder
-
-