public interface RequestQueueFactory
RequestQueue instances.| Modifier and Type | Method and Description |
|---|---|
static RequestQueueFactory |
backedByProcessor(Supplier<FluxProcessor<Object,Object>> processorSupplier,
FluxSink.OverflowStrategy overflowStrategy)
Returns a factory of
RequestQueue backed by a FluxProcessor. |
static RequestQueueFactory |
buffering()
Returns a factory of
RequestQueue with default parameters capable of buffering requests in an
unbounded way. |
<T> RequestQueue<T> |
create()
Creates a new
RequestQueue instance. |
<T> RequestQueue<T> create()
RequestQueue instance.T - the desired generic type of RequestQueueRequestQueuestatic RequestQueueFactory backedByProcessor(Supplier<FluxProcessor<Object,Object>> processorSupplier, FluxSink.OverflowStrategy overflowStrategy)
RequestQueue backed by a FluxProcessor.processorSupplier - a Supplier that provides a processor. The Supplier must provide a new instance
every time it is called, and the processor must not be pre-filled with any elements, otherwise it may lead to
non-deterministic behavior.overflowStrategy - the overflow strategy to apply on the processorRequestQueueFactory backed by a FluxProcessorstatic RequestQueueFactory buffering()
RequestQueue with default parameters capable of buffering requests in an
unbounded way.RequestQueueFactory backed by an EmitterProcessor with a buffering configuration.