Class MultiBufferWithTimeoutOp<T>

  • Type Parameters:
    T - the type of item from upstream
    All Implemented Interfaces:
    Multi<java.util.List<T>>, org.reactivestreams.Publisher<java.util.List<T>>

    public final class MultiBufferWithTimeoutOp<T>
    extends AbstractMultiOperator<T,​java.util.List<T>>
    Buffers items from upstream for a given duration and emits the groups as a single item downstream. If the amount of accumulated reach the given size before the timeout, the group is emitted. This implementation uses ArrayList and so emits List.
    • Constructor Detail

      • MultiBufferWithTimeoutOp

        public MultiBufferWithTimeoutOp​(Multi<T> upstream,
                                        int size,
                                        java.time.Duration timeout,
                                        java.util.concurrent.ScheduledExecutorService scheduler)