public class BroadcastHelper extends Object
Modifier and Type | Method and Description |
---|---|
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. |
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.
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.Publisher
in a new PublisherBuilder
Copyright © 2018–2021 SmallRye. All rights reserved.