Class PausablePollingStream<P,T>

java.lang.Object
io.smallrye.reactive.messaging.providers.helpers.PausablePollingStream<P,T>
Type Parameters:
P - polled item type
T - emitted item type

public class PausablePollingStream<P,T> extends Object
A polling stream that can be paused and resumed.
  • Constructor Details

    • PausablePollingStream

      public PausablePollingStream(String channel, io.smallrye.mutiny.Uni<P> pollUni, BiConsumer<P,Flow.Processor<T,T>> emitFunction, ScheduledExecutorService pollerExecutor, int maxQueueSize, boolean pauseResumeEnabled)
      Create a new polling stream.
      Parameters:
      channel - the channel name
      pollUni - the uni that polls the data
      emitFunction - the function that emits the polled data
      pollerExecutor - the executor that polls the data
      maxQueueSize - the maximum queue size
      pauseResumeEnabled - whether pause/resume is enabled
  • Method Details

    • getStream

      public io.smallrye.mutiny.Multi<T> getStream()