Class UnicastProcessor<T>

java.lang.Object
io.smallrye.mutiny.operators.AbstractMulti<T>
io.smallrye.mutiny.operators.multi.processors.UnicastProcessor<T>
Type Parameters:
T - the type of item
All Implemented Interfaces:
Multi<T>, Flow.Processor<T,T>, Flow.Publisher<T>, Flow.Subscriber<T>, Flow.Subscription

public class UnicastProcessor<T> extends AbstractMulti<T> implements Flow.Processor<T,T>, Flow.Subscription
Implementation of a processor using a queue to store items and allows a single subscriber to receive these items.

The back pressure model is not using the request protocol but the queue used to store the items. If the queue gets full, an BackPressureFailure exception is propagated downstream.

This processor must not be re-subscribed: it expects exactly 1 subscriber. If you expect multiple subscribers then you should look at creating a Multi from an emitter, see MultiCreate.emitter(Consumer, BackPressureStrategy).