Class BroadcastHelper


  • public class BroadcastHelper
    extends Object
    • 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 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