Class BroadcastHelper


  • public class BroadcastHelper
    extends Object
    • 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 Publisher for broadcasting.

        Parameters:
        publisher - The publisher to be wrapped
        numberOfSubscriberBeforeConnecting - 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 new PublisherBuilder