Top Fields Constructors Methods
reactor.core.publisher

pack-priv final Class DelegateProcessor<IN, OUT>

extends FluxProcessor<IN, OUT>
Class Inheritance
Annotations
@Deprecated
Imports
java.util.Objects, java.util.stream.Stream, org.reactivestreams.Publisher, .Subscriber, .Subscription, reactor.core.CoreSubscriber, .Scannable, reactor.util.annotation.Nullable, reactor.util.context.Context

Deprecated

Author
Stephane Maldini

Field Summary

Modifier and TypeField and Description
pack-priv final Publisher<OUT>
pack-priv final Subscriber<IN>

Constructor Summary

AccessConstructor and Description
pack-priv
DelegateProcessor(Publisher<OUT> downstream, Subscriber<IN> upstream)

Method Summary

Modifier and TypeMethod and Description
public Context
currentContext()

Overrides reactor.core.publisher.FluxProcessor.currentContext.

Overrides default reactor.core.CoreSubscriber.currentContext.

Implements reactor.core.publisher.ContextHolder.currentContext.

Request a Context from dependent components which can include downstream operators during subscribing or a terminal org.reactivestreams.Subscriber.
public int
getBufferSize()

Overrides reactor.core.publisher.FluxProcessor.getBufferSize.

Return the processor buffer capacity if any or Integer#MAX_VALUE
public Throwable
getError()

Overrides reactor.core.publisher.FluxProcessor.getError.

Current error if any, default to null
public Stream<? extends Scannable>
inners()

Overrides reactor.core.publisher.FluxProcessor.inners.

Overrides default reactor.core.Scannable.inners.

Return a Stream of referenced inners (flatmap, multicast etc)
public boolean
isSerialized()

Overrides reactor.core.publisher.FluxProcessor.isSerialized.

Return true if this FluxProcessor supports multithread producing
public boolean
isTerminated()

Overrides reactor.core.publisher.FluxProcessor.isTerminated.

Has this upstream finished or "completed" / "failed" ?
public void
onComplete()

Implements org.reactivestreams.Subscriber.onComplete.

Successful terminal state.
public void
onError(Throwable
the throwable signaled
t
)

Implements org.reactivestreams.Subscriber.onError.

Failed terminal state.
public void
onNext(IN
the element signaled
in
)

Implements org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).
public void
onSubscribe(Subscription
the Subscription that allows requesting data via Subscription#request(long)
s
)

Implements org.reactivestreams.Subscriber.onSubscribe, reactor.core.CoreSubscriber.onSubscribe.

Implementors should initialize any state used by onNext(Object) before calling Subscription#request(long).
public Object
scanUnsafe(Scannable.Attr<T>
a Attr to resolve for the component.
key
)

Overrides reactor.core.publisher.FluxProcessor.scanUnsafe.

Implements reactor.core.Scannable.scanUnsafe.

This method is used internally by components to define their key-value mappings in a single place.
public void
subscribe(CoreSubscriber<? super OUT>
the Subscriber interested into the published sequence
actual
)

Implements abstract reactor.core.publisher.Flux.subscribe.

Implements reactor.core.CorePublisher.subscribe.

An internal Publisher#subscribe(Subscriber) that will bypass Hooks#onLastOperator(Function) pointcut.
Inherited from reactor.core.publisher.FluxProcessor:
disposedownstreamCounthasCompletedhasDownstreamshasErrorisIdentityProcessorserializeserializeAlwayssinksinkswitchOnNextwrap

Field Detail

downstreamback to summary
pack-priv final Publisher<OUT> downstream
upstreamback to summary
pack-priv final Subscriber<IN> upstream

Constructor Detail

DelegateProcessorback to summary
pack-priv DelegateProcessor(Publisher<OUT> downstream, Subscriber<IN> upstream)

Method Detail

currentContextback to summary
public Context currentContext()

Overrides reactor.core.publisher.FluxProcessor.currentContext.

Overrides default reactor.core.CoreSubscriber.currentContext.

Implements reactor.core.publisher.ContextHolder.currentContext.

Doc from reactor.core.CoreSubscriber.currentContext.

Request a Context from dependent components which can include downstream operators during subscribing or a terminal org.reactivestreams.Subscriber.

Returns:Context

a resolved context or Context#empty()

Annotations
@Override
getBufferSizeback to summary
public int getBufferSize()

Overrides reactor.core.publisher.FluxProcessor.getBufferSize.

Doc from reactor.core.publisher.FluxProcessor.getBufferSize.

Return the processor buffer capacity if any or Integer#MAX_VALUE

Returns:int

processor buffer capacity if any or Integer#MAX_VALUE

Annotations
@Override
getErrorback to summary
public Throwable getError()

Overrides reactor.core.publisher.FluxProcessor.getError.

Doc from reactor.core.publisher.FluxProcessor.getError.

Current error if any, default to null

Returns:Throwable

Current error if any, default to null

Annotations
@Override
@Nullable
innersback to summary
public Stream<? extends Scannable> inners()

Overrides reactor.core.publisher.FluxProcessor.inners.

Overrides default reactor.core.Scannable.inners.

Doc from reactor.core.Scannable.inners.

Return a Stream of referenced inners (flatmap, multicast etc)

Returns:Stream<? extends Scannable>

a Stream of referenced inners (flatmap, multicast etc)

Annotations
@Override
isSerializedback to summary
public boolean isSerialized()

Overrides reactor.core.publisher.FluxProcessor.isSerialized.

Doc from reactor.core.publisher.FluxProcessor.isSerialized.

Return true if this FluxProcessor supports multithread producing

Returns:boolean

true if this FluxProcessor supports multithread producing

Annotations
@Override
@SuppressWarnings:unchecked
isTerminatedback to summary
public boolean isTerminated()

Overrides reactor.core.publisher.FluxProcessor.isTerminated.

Doc from reactor.core.publisher.FluxProcessor.isTerminated.

Has this upstream finished or "completed" / "failed" ?

Returns:boolean

has this upstream finished or "completed" / "failed" ?

Annotations
@Override
onCompleteback to summary
public void onComplete()

Implements org.reactivestreams.Subscriber.onComplete.

Doc from org.reactivestreams.Subscriber.onComplete.

Successful terminal state.

No further events will be sent even if Subscription#request(long) is invoked again.

Annotations
@Override
onErrorback to summary
public void onError(Throwable t)

Implements org.reactivestreams.Subscriber.onError.

Doc from org.reactivestreams.Subscriber.onError.

Failed terminal state.

No further events will be sent even if Subscription#request(long) is invoked again.

Parameters
t:Throwable

the throwable signaled

Annotations
@Override
onNextback to summary
public void onNext(IN in)

Implements org.reactivestreams.Subscriber.onNext.

Doc from org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).

Parameters
in:IN

the element signaled

Annotations
@Override
onSubscribeback to summary
public void onSubscribe(Subscription s)

Implements org.reactivestreams.Subscriber.onSubscribe, reactor.core.CoreSubscriber.onSubscribe.

Doc from reactor.core.CoreSubscriber.onSubscribe.

Implementors should initialize any state used by onNext(Object) before calling Subscription#request(long). Should further onNext related state modification occur, thread-safety will be required.

Note that an invalid request <= 0 will not produce an onError and will simply be ignored or reported through a debug-enabled reactor.util.Logger. Invoked after calling Publisher#subscribe(Subscriber).

No data will start flowing until Subscription#request(long) is invoked.

It is the responsibility of this Subscriber instance to call Subscription#request(long) whenever more data is wanted.

The Publisher will send notifications only in response to Subscription#request(long).

Parameters
s:Subscription

Doc from org.reactivestreams.Subscriber.onSubscribe.

the Subscription that allows requesting data via Subscription#request(long)

Annotations
@Override
scanUnsafeback to summary
public Object scanUnsafe(Scannable.Attr<T> key)

Overrides reactor.core.publisher.FluxProcessor.scanUnsafe.

Implements reactor.core.Scannable.scanUnsafe.

Doc from reactor.core.Scannable.scanUnsafe.

This method is used internally by components to define their key-value mappings in a single place. Although it is ignoring the generic type of the Attr key, implementors should take care to return values of the correct type, and return null if no specific value is available.

For public consumption of attributes, prefer using scan(Attr), which will return a typed value and fall back to the key's default if the component didn't define any mapping.

Parameters
key:Scannable.Attr<T>

a Attr to resolve for the component.

Returns:Object

the value associated to the key for that specific component, or null if none.

Annotations
@Override
@Nullable
subscribeback to summary
public void subscribe(CoreSubscriber<? super OUT> actual)

Implements abstract reactor.core.publisher.Flux.subscribe.

Implements reactor.core.CorePublisher.subscribe.

Doc from reactor.core.publisher.Flux.subscribe.

An internal Publisher#subscribe(Subscriber) that will bypass Hooks#onLastOperator(Function) pointcut.

In addition to behave as expected by Publisher#subscribe(Subscriber) in a controlled manner, it supports direct subscribe-time Context passing.

Parameters
actual:CoreSubscriber<? super OUT>

the Subscriber interested into the published sequence

Annotations
@Override