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. |
<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 FluxProcessor