Top Description Inners Fields Constructors Methods
reactor.core.publisher

public final Class EmitterProcessor<T>

extends FluxProcessor<T, T>
implements InternalManySink<T>, Sinks.ManyWithUpstream<T>
Class Inheritance
All Implemented Interfaces
reactor.core.publisher.Sinks.ManyWithUpstream, reactor.core.publisher.Sinks.Many, reactor.core.Scannable, reactor.core.publisher.InternalManySink, reactor.core.publisher.ContextHolder
Annotations
@Deprecated
Type Parameters
<T>
the input and output value type
Imports
java.util.Objects, .Queue, java.util.concurrent.CancellationException, java.util.concurrent.atomic.AtomicIntegerFieldUpdater, .AtomicReferenceFieldUpdater, java.util.stream.Stream, org.reactivestreams.Publisher, .Subscriber, .Subscription, reactor.core.CoreSubscriber, .Disposable, .Exceptions, .Fuseable, .Scannable, reactor.core.publisher.Sinks.EmitResult, reactor.util.annotation.Nullable, reactor.util.concurrent.Queues, reactor.util.context.Context

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 org.reactivestreams.Processor, switch to Sinks.ManyWithUpstream with Sinks#unsafe() variants of Sinks.unsafe().manyWithUpstream().

This processor was blocking in EmitterProcessor#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

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
pack-priv volatile boolean
pack-priv static final FluxPublish.PubSubInner<T>[]
pack-priv volatile Throwable
pack-priv static final AtomicReferenceFieldUpdater<EmitterProcessor<T>, Throwable>
pack-priv final int
pack-priv volatile Queue<T>
pack-priv volatile Subscription
s

pack-priv static final AtomicReferenceFieldUpdater<EmitterProcessor<T>, Subscription>
S

pack-priv int
pack-priv volatile FluxPublish.PubSubInner<T>[]
pack-priv static final AtomicReferenceFieldUpdater<EmitterProcessor<T>, FluxPublish.PubSubInner<T>[]>
pack-priv static final AtomicReferenceFieldUpdater<EmitterProcessor<T>, EmitterProcessor.EmitterDisposable>
pack-priv volatile EmitterProcessor.EmitterDisposable
pack-priv volatile int
pack-priv static final AtomicIntegerFieldUpdater<EmitterProcessor<T>>

Constructor Summary

AccessConstructor and Description
pack-priv
EmitterProcessor(boolean autoCancel, int prefetch)

Method Summary

Modifier and TypeMethod and Description
pack-priv final boolean
public Flux<T>
asFlux()

Implements reactor.core.publisher.Sinks.Many.asFlux.

Return a Flux view of this sink.
pack-priv boolean
checkTerminated(boolean d, boolean empty)

public static <
Type of processed signals
E
>
EmitterProcessor<E>

Returns:

a fresh processor
create
()

Deprecated use Sinks.many().multicast().onBackpressureBuffer() (or the unsafe variant if you're sure about external synchronization).
Create a new EmitterProcessor using Queues#SMALL_BUFFER_SIZE backlog size and auto-cancel.
public static <
Type of processed signals
E
>
EmitterProcessor<E>

Returns:

a fresh processor
create
(boolean
automatically cancel
autoCancel
)

Deprecated use Sinks.many().multicast().onBackpressureBuffer(bufferSize, boolean) using the old default of Queues#SMALL_BUFFER_SIZE for the bufferSize (or the unsafe variant if you're sure about external synchronization).
Create a new EmitterProcessor using Queues#SMALL_BUFFER_SIZE backlog size and the provided auto-cancel.
public static <
Type of processed signals
E
>
EmitterProcessor<E>

Returns:

a fresh processor
create
(int
the internal buffer size to hold signals
bufferSize
)

Deprecated use Sinks.many().multicast().onBackpressureBuffer(bufferSize) (or the unsafe variant if you're sure about external synchronization).
Create a new EmitterProcessor using the provided backlog size, with auto-cancel.
public static <
Type of processed signals
E
>
EmitterProcessor<E>

Returns:

a fresh processor
create
(int
the internal buffer size to hold signals
bufferSize
,
boolean
automatically cancel
autoCancel
)

Deprecated use Sinks.many().multicast().onBackpressureBuffer(bufferSize, autoCancel) (or the unsafe variant if you're sure about external synchronization).
Create a new EmitterProcessor using the provided backlog size and auto-cancellation.
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
currentSubscriberCount()

Implements reactor.core.publisher.Sinks.Many.currentSubscriberCount.

Get how many Subscribers are currently subscribed to the sink.
private boolean
public long
downstreamCount()

Overrides reactor.core.publisher.FluxProcessor.downstreamCount.

Return the number of active Subscriber or -1 if untracked.
pack-priv final void
public final 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 int

Returns:

the number of parked elements in the emitter backlog.
getPending
()

Return the number of parked elements in the emitter backlog.

public int
getPrefetch()

Overrides reactor.core.publisher.Flux.getPrefetch.

The prefetch configuration of the Flux
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

Returns:

true if all subscribers have actually been cancelled and the processor auto shut down
isCancelled
()

private boolean
public boolean
isDisposed()

Overrides default reactor.core.Disposable.isDisposed.

Optionally return true when the resource or task is disposed.
protected boolean
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
throwable
)

Implements org.reactivestreams.Subscriber.onError.

Failed terminal state.
public void
onNext(T
the element signaled
t
)

Implements org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).
public void
onSubscribe(final 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).
pack-priv final void
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 T>
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.
public Disposable
subscribeTo(Publisher<? extends T> upstream)

Implements reactor.core.publisher.Sinks.ManyWithUpstream.subscribeTo.

Explicitly subscribe this Sinks.Many to an upstream Publisher without exposing it as a Subscriber at all.
pack-priv FluxPublish.PubSubInner<T>[]
public Sinks.EmitResult
tryEmitComplete()

Implements reactor.core.publisher.Sinks.Many.tryEmitComplete.

Try to terminate the sequence successfully, generating an onComplete signal.
public Sinks.EmitResult
tryEmitError(Throwable
the exception to signal, not null
t
)

Implements reactor.core.publisher.Sinks.Many.tryEmitError.

Try to fail the sequence, generating an onError signal.
public Sinks.EmitResult
tryEmitNext(T
the value to emit, not null
t
)

Implements reactor.core.publisher.Sinks.Many.tryEmitNext.

Try emitting a non-null element, generating an onNext signal.
Inherited from reactor.core.publisher.FluxProcessor:
disposehasCompletedhasDownstreamshasErrorisSerializedserializeserializeAlwayssinksinkswitchOnNextwrap

Field Detail

autoCancelback to summary
pack-priv final boolean autoCancel
doneback to summary
pack-priv volatile boolean done
EMPTYback to summary
pack-priv static final FluxPublish.PubSubInner<T>[] EMPTY
Annotations
@SuppressWarnings:rawtypes
errorback to summary
pack-priv volatile Throwable error
ERRORback to summary
pack-priv static final AtomicReferenceFieldUpdater<EmitterProcessor<T>, Throwable> ERROR
Annotations
@SuppressWarnings:rawtypes
prefetchback to summary
pack-priv final int prefetch
queueback to summary
pack-priv volatile Queue<T> queue
sback to summary
pack-priv volatile Subscription s
Sback to summary
pack-priv static final AtomicReferenceFieldUpdater<EmitterProcessor<T>, Subscription> S
Annotations
@SuppressWarnings:rawtypes
sourceModeback to summary
pack-priv int sourceMode
subscribersback to summary
pack-priv volatile FluxPublish.PubSubInner<T>[] subscribers
SUBSCRIBERSback to summary
pack-priv static final AtomicReferenceFieldUpdater<EmitterProcessor<T>, FluxPublish.PubSubInner<T>[]> SUBSCRIBERS
Annotations
@SuppressWarnings:rawtypes
UPSTREAM_DISPOSABLEback to summary
pack-priv static final AtomicReferenceFieldUpdater<EmitterProcessor<T>, EmitterProcessor.EmitterDisposable> UPSTREAM_DISPOSABLE
Annotations
@SuppressWarnings:rawtypes
upstreamDisposableback to summary
pack-priv volatile EmitterProcessor.EmitterDisposable upstreamDisposable
wipback to summary
pack-priv volatile int wip
Annotations
@SuppressWarnings:unused
WIPback to summary
pack-priv static final AtomicIntegerFieldUpdater<EmitterProcessor<T>> WIP
Annotations
@SuppressWarnings:rawtypes

Constructor Detail

EmitterProcessorback to summary
pack-priv EmitterProcessor(boolean autoCancel, int prefetch)

Method Detail

addback to summary
pack-priv final boolean add(EmitterProcessor.EmitterInner<T> inner)
asFluxback to summary
public Flux<T> asFlux()

Implements reactor.core.publisher.Sinks.Many.asFlux.

Doc from reactor.core.publisher.Sinks.Many.asFlux.

Return a Flux view of this sink. Every call returns the same instance.

Returns:Flux<T>

the Flux view associated to this Sinks.Many

Annotations
@Override
checkTerminatedback to summary
pack-priv boolean checkTerminated(boolean d, boolean empty)
createback to summary
public static <E> EmitterProcessor<E> create()

Deprecated

use Sinks.many().multicast().onBackpressureBuffer() (or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.

Create a new EmitterProcessor using Queues#SMALL_BUFFER_SIZE backlog size and auto-cancel.

Parameters
<E>
Type of processed signals
Returns:EmitterProcessor<E>

a fresh processor

Annotations
@Deprecated
createback to summary
public static <E> EmitterProcessor<E> create(boolean autoCancel)

Deprecated

use Sinks.many().multicast().onBackpressureBuffer(bufferSize, boolean) using the old default of Queues#SMALL_BUFFER_SIZE for the bufferSize (or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.

Create a new EmitterProcessor using Queues#SMALL_BUFFER_SIZE backlog size and the provided auto-cancel.

Parameters
<E>
Type of processed signals
autoCancel:boolean

automatically cancel

Returns:EmitterProcessor<E>

a fresh processor

Annotations
@Deprecated
createback to summary
public static <E> EmitterProcessor<E> create(int bufferSize)

Deprecated

use Sinks.many().multicast().onBackpressureBuffer(bufferSize) (or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.

Create a new EmitterProcessor using the provided backlog size, with auto-cancel.

Parameters
<E>
Type of processed signals
bufferSize:int

the internal buffer size to hold signals

Returns:EmitterProcessor<E>

a fresh processor

Annotations
@Deprecated
createback to summary
public static <E> EmitterProcessor<E> create(int bufferSize, boolean autoCancel)

Deprecated

use Sinks.many().multicast().onBackpressureBuffer(bufferSize, autoCancel) (or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.

Create a new EmitterProcessor using the provided backlog size and auto-cancellation.

Parameters
<E>
Type of processed signals
bufferSize:int

the internal buffer size to hold signals

autoCancel:boolean

automatically cancel

Returns:EmitterProcessor<E>

a fresh processor

Annotations
@Deprecated
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.publisher.ContextHolder.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

Annotations
@Override
currentSubscriberCountback to summary
public int currentSubscriberCount()

Implements reactor.core.publisher.Sinks.Many.currentSubscriberCount.

Doc from reactor.core.publisher.Sinks.Many.currentSubscriberCount.

Get how many Subscribers are currently subscribed to the sink.

This is a best effort peek at the sink state, and a subsequent attempt at emitting to the sink might still return EmitResult#FAIL_ZERO_SUBSCRIBER where relevant. (generally in tryEmitNext(Object)). Request (and lack thereof) isn't taken into account, all registered subscribers are counted.

Returns:int

the number of subscribers at the time of invocation

Annotations
@Override
detachback to summary
private boolean detach()
downstreamCountback to summary
public long downstreamCount()

Overrides reactor.core.publisher.FluxProcessor.downstreamCount.

Doc from reactor.core.publisher.FluxProcessor.downstreamCount.

Return the number of active Subscriber or -1 if untracked.

Returns:long

the number of active Subscriber or -1 if untracked

Annotations
@Override
drainback to summary
pack-priv final void drain()
getBufferSizeback to summary
public final 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
getPendingback to summary
public int getPending()

Return the number of parked elements in the emitter backlog.

Returns:int

the number of parked elements in the emitter backlog.

getPrefetchback to summary
public int getPrefetch()

Overrides reactor.core.publisher.Flux.getPrefetch.

Doc from reactor.core.publisher.Flux.getPrefetch.

The prefetch configuration of the Flux

Returns:int

the prefetch configuration of the Flux, -1 if unspecified

Annotations
@Override
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
isCancelledback to summary
public boolean isCancelled()
Returns:boolean

true if all subscribers have actually been cancelled and the processor auto shut down

isDetachedback to summary
private boolean isDetached()
isDisposedback to summary
public boolean isDisposed()

Overrides default reactor.core.Disposable.isDisposed.

Doc from reactor.core.Disposable.isDisposed.

Optionally return true when the resource or task is disposed.

Implementations are not required to track disposition and as such may never return true even when disposed. However, they MUST only return true when there's a guarantee the resource or task is disposed.

Returns:boolean

true when there's a guarantee the resource or task is disposed.

Annotations
@Override
isIdentityProcessorback to summary
protected boolean isIdentityProcessor()

Overrides reactor.core.publisher.FluxProcessor.isIdentityProcessor.

Doc from reactor.core.publisher.FluxProcessor.isIdentityProcessor.

Return true if FluxProcessor<T, T>

Returns:boolean

true if FluxProcessor<T, T>

Annotations
@Override
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 throwable)

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
throwable:Throwable

the throwable signaled

Annotations
@Override
onNextback to summary
public void onNext(T t)

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
t:T

the element signaled

Annotations
@Override
onSubscribeback to summary
public void onSubscribe(final 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
removeback to summary
pack-priv final void remove(FluxPublish.PubSubInner<T> inner)
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 T> 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 T>

the Subscriber interested into the published sequence

Annotations
@Override
subscribeToback to summary
public Disposable subscribeTo(Publisher<? extends T> upstream)

Implements reactor.core.publisher.Sinks.ManyWithUpstream.subscribeTo.

Doc from reactor.core.publisher.Sinks.ManyWithUpstream.subscribeTo.

Explicitly subscribe this Sinks.Many to an upstream Publisher without exposing it as a Subscriber at all.

Note that when this is done, one MUST stop using emit/tryEmit APIs, reserving signal creation to be the sole responsibility of the upstream Publisher.

The returned Disposable provides a way of both unsubscribing from the upstream and terminating the sink: currently registered subscribers downstream receive an onError signal with a java.util.concurrent.CancellationException and further attempts at subscribing to the sink will trigger a similar signal immediately (in which case the returned Disposable might be no-op).

Any attempt at subscribing the same ManyWithUpstream multiple times throws an IllegalStateException indicating that the subscription must be unique.

Annotations
@Override
terminateback to summary
pack-priv FluxPublish.PubSubInner<T>[] terminate()
Annotations
@SuppressWarnings:unchecked
tryEmitCompleteback to summary
public Sinks.EmitResult tryEmitComplete()

Implements reactor.core.publisher.Sinks.Many.tryEmitComplete.

Doc from reactor.core.publisher.Sinks.Many.tryEmitComplete.

Try to terminate the sequence successfully, generating an onComplete signal. The result of the attempt is represented as an EmitResult, which possibly indicates error cases.

See the list of failure EmitResult in emitComplete(EmitFailureHandler) javadoc for an example of how each of these can be dealt with, to decide if the emit API would be a good enough fit instead.

Returns:Sinks.EmitResult

an EmitResult, which should be checked to distinguish different possible failures

Annotations
@Override
tryEmitErrorback to summary
public Sinks.EmitResult tryEmitError(Throwable t)

Implements reactor.core.publisher.Sinks.Many.tryEmitError.

Doc from reactor.core.publisher.Sinks.Many.tryEmitError.

Try to fail the sequence, generating an onError signal. The result of the attempt is represented as an EmitResult, which possibly indicates error cases.

See the list of failure EmitResult in emitError(Throwable, EmitFailureHandler) javadoc for an example of how each of these can be dealt with, to decide if the emit API would be a good enough fit instead.

Parameters
t:Throwable

the exception to signal, not null

Returns:Sinks.EmitResult

an EmitResult, which should be checked to distinguish different possible failures

Annotations
@Override
tryEmitNextback to summary
public Sinks.EmitResult tryEmitNext(T t)

Implements reactor.core.publisher.Sinks.Many.tryEmitNext.

Doc from reactor.core.publisher.Sinks.Many.tryEmitNext.

Try emitting a non-null element, generating an onNext signal. The result of the attempt is represented as an EmitResult, which possibly indicates error cases.

See the list of failure EmitResult in emitNext(Object, EmitFailureHandler) javadoc for an example of how each of these can be dealt with, to decide if the emit API would be a good enough fit instead.

Might throw an unchecked exception as a last resort (eg. in case of a fatal error downstream which cannot be propagated to any asynchronous handler, a bubbling exception, ...).

Parameters
t:T

the value to emit, not null

Returns:Sinks.EmitResult

an EmitResult, which should be checked to distinguish different possible failures

Annotations
@Override
reactor.core.publisher back to summary

pack-priv final Class EmitterProcessor.EmitterDisposable

extends Object
implements Disposable
Class Inheritance
All Implemented Interfaces
reactor.core.Disposable

Field Summary

Modifier and TypeField and Description
pack-priv EmitterProcessor<?>
target

Deprecated as a consequence of EmitterProcessor being deprecated.

Constructor Summary

AccessConstructor and Description
public
EmitterDisposable(EmitterProcessor<?> emitterProcessor)

Deprecated as a consequence of EmitterProcessor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Implements reactor.core.Disposable.dispose.

Cancel or dispose the underlying task or resource.
public boolean
isDisposed()

Overrides default reactor.core.Disposable.isDisposed.

Optionally return true when the resource or task is disposed.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

targetback to summary
pack-priv EmitterProcessor<?> target

Deprecated

as a consequence of EmitterProcessor being deprecated. See corresponding docs for further information.

Annotations
@Nullable

Constructor Detail

EmitterDisposableback to summary
public EmitterDisposable(EmitterProcessor<?> emitterProcessor)

Deprecated

as a consequence of EmitterProcessor being deprecated. See corresponding docs for further information.

Method Detail

disposeback to summary
public void dispose()

Implements reactor.core.Disposable.dispose.

Doc from reactor.core.Disposable.dispose.

Cancel or dispose the underlying task or resource.

Implementations are required to make this method idempotent.

Annotations
@Override
isDisposedback to summary
public boolean isDisposed()

Overrides default reactor.core.Disposable.isDisposed.

Doc from reactor.core.Disposable.isDisposed.

Optionally return true when the resource or task is disposed.

Implementations are not required to track disposition and as such may never return true even when disposed. However, they MUST only return true when there's a guarantee the resource or task is disposed.

Returns:boolean

true when there's a guarantee the resource or task is disposed.

Annotations
@Override
reactor.core.publisher back to summary

pack-priv final Class EmitterProcessor.EmitterInner<T>

extends FluxPublish.PubSubInner<T>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final EmitterProcessor<T>
parent

Deprecated as a consequence of EmitterProcessor being deprecated.
Inherited from reactor.core.publisher.FluxPublish.PubSubInner:
actualrequestedREQUESTED

Constructor Summary

AccessConstructor and Description
pack-priv
EmitterInner(CoreSubscriber<? super T> actual, EmitterProcessor<T> parent)

Deprecated as a consequence of EmitterProcessor being deprecated.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
Inherited from reactor.core.publisher.FluxPublish.PubSubInner:
actualcancelisCancelledrequestscanUnsafe

Field Detail

parentback to summary
pack-priv final EmitterProcessor<T> parent

Deprecated

as a consequence of EmitterProcessor being deprecated. See corresponding docs for further information.

Constructor Detail

EmitterInnerback to summary
pack-priv EmitterInner(CoreSubscriber<? super T> actual, EmitterProcessor<T> parent)

Deprecated

as a consequence of EmitterProcessor being deprecated. See corresponding docs for further information.

Method Detail

drainParentback to summary
pack-priv void drainParent()

Implements abstract reactor.core.publisher.FluxPublish.PubSubInner.drainParent.

Annotations
@Override
removeAndDrainParentback to summary
pack-priv void removeAndDrainParent()

Implements abstract reactor.core.publisher.FluxPublish.PubSubInner.removeAndDrainParent.

Annotations
@Override