Class BroadcastHelper
- java.lang.Object
 - 
- io.smallrye.reactive.messaging.helpers.BroadcastHelper
 
 
- 
public class BroadcastHelper extends Object
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>>broadcastPublisher(org.reactivestreams.Publisher<? extends Message<?>> publisher, int numberOfSubscriberBeforeConnecting)Wraps an existingPublisherfor broadcasting. 
 - 
 
- 
- 
Method Detail
- 
broadcastPublisher
public static org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> broadcastPublisher(org.reactivestreams.Publisher<? extends Message<?>> publisher, int numberOfSubscriberBeforeConnecting)
Wraps an existing
Publisherfor 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 
Publisherin a newPublisherBuilder 
 
 - 
 
 -