Class PausablePollingStream<P,T>
java.lang.Object
io.smallrye.reactive.messaging.providers.helpers.PausablePollingStream<P,T>
- Type Parameters:
P- polled item typeT- emitted item type
A polling stream that can be paused and resumed.
-
Constructor Summary
ConstructorsConstructorDescriptionPausablePollingStream(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. -
Method Summary
-
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 namepollUni- the uni that polls the dataemitFunction- the function that emits the polled datapollerExecutor- the executor that polls the datamaxQueueSize- the maximum queue sizepauseResumeEnabled- whether pause/resume is enabled
-
-
Method Details
-
getStream
-