Class EmitterProcessor<T>

java.lang.Object
reactor.core.publisher.Flux<OUT>
reactor.core.publisher.FluxProcessor<T,T>
reactor.core.publisher.EmitterProcessor<T>
Type Parameters:
T - the input and output value type
All Implemented Interfaces:
Processor<T,T>, Publisher<T>, Subscriber<T>, CorePublisher<T>, CoreSubscriber<T>, Disposable, Sinks.Many<T>, Sinks.ManyWithUpstream<T>, Scannable

@Deprecated public final class EmitterProcessor<T> extends FluxProcessor<T,T> implements Sinks.ManyWithUpstream<T>
Deprecated.
To be removed in 3.5. Prefer clear cut usage of Sinks through variations of Sinks.many().multicast().onBackpressureBuffer(). If you really need the subscribe-to-upstream functionality of a Processor, switch to Sinks.ManyWithUpstream with Sinks.unsafe() variants of Sinks.unsafe().manyWithUpstream().

This processor was blocking in onNext(Object). This behaviour can be implemented with the Sinks API by calling Sinks.Many.tryEmitNext(Object) and retrying, e.g.:

while (sink.tryEmitNext(v).hasFailed()) {
     LockSupport.parkNanos(10);
 }
 
An implementation of a message-passing Processor implementing publish-subscribe with synchronous (thread-stealing and happen-before interactions) drain loops.

The default create() factories will only produce the new elements observed in the parent sequence after a given Subscriber is subscribed.

Author:
Stephane Maldini