Top Description Inners Fields Constructors Methods
reactor.core.publisher

pack-priv final Class FluxBuffer<T, C extends java.util.Collection<? super T>>

extends InternalFluxOperator<T, C extends Collection<? super T>>
Class Inheritance
Type Parameters
<T>
the source value type
<C>
the buffer collection type
Imports
java.util.ArrayDeque, .Collection, .Objects, java.util.concurrent.atomic.AtomicIntegerFieldUpdater, .AtomicLongFieldUpdater, java.util.function.BooleanSupplier, .Supplier, org.reactivestreams.Subscription, reactor.core.CoreSubscriber, reactor.util.annotation.Nullable, reactor.util.context.Context

Buffers a certain number of subsequent elements and emits the buffers.
See Also
Reactive-Streams-Commons

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final Supplier<C>
pack-priv final int
pack-priv final int
Inherited from reactor.core.publisher.InternalFluxOperator:
optimizableOperator

Constructor Summary

AccessConstructor and Description
pack-priv
FluxBuffer(Flux<? extends T> source, int size, Supplier<C> bufferSupplier)

pack-priv
FluxBuffer(Flux<? extends T> source, int size, int skip, Supplier<C> bufferSupplier)

Method Summary

Modifier and TypeMethod and Description
public Object
scanUnsafe(Scannable.Attr<T>
a Attr to resolve for the component.
key
)

Overrides reactor.core.publisher.InternalFluxOperator.scanUnsafe.

Implements reactor.core.Scannable.scanUnsafe.

This method is used internally by components to define their key-value mappings in a single place.
public CoreSubscriber<? super T>
subscribeOrReturn(CoreSubscriber<? super C> actual)

Implements abstract reactor.core.publisher.InternalFluxOperator.subscribeOrReturn.

Implements reactor.core.publisher.OptimizableOperator.subscribeOrReturn.

Allow delegation of the subscription by returning a CoreSubscriber, or force subscription encapsulation by returning null.
Inherited from reactor.core.publisher.InternalFluxOperator:
nextOptimizableSourcesourcesubscribe