Top Methods
reactor.core.publisher

pack-priv Interface InternalManySink<T>

extends Sinks.Many<T>, ContextHolder
Known Direct Implementers
reactor.core.publisher.EmitterProcessor, reactor.core.publisher.SinkManyEmitterProcessor, reactor.core.publisher.SinkManyReplayProcessor, reactor.core.publisher.SinkManySerialized, reactor.core.publisher.SinkManyUnicast, reactor.core.publisher.SinkManyUnicastNoBackpressure, reactor.core.publisher.UnicastProcessor, reactor.core.publisher.SinkManyBestEffort, reactor.core.publisher.ReplayProcessor
Imports
reactor.core.Exceptions, reactor.core.publisher.Sinks.EmissionException

Method Summary

Modifier and TypeMethod and Description
public default void
emitComplete(Sinks.EmitFailureHandler
the failure handler that allows retrying failed EmitResult.
failureHandler
)

Implements reactor.core.publisher.Sinks.Many.emitComplete.

A simplified attempt at completing via the tryEmitComplete() API, generating an onComplete signal.
public default void
emitError(Throwable
the exception to signal, not null
error
,
Sinks.EmitFailureHandler
the failure handler that allows retrying failed EmitResult.
failureHandler
)

Implements reactor.core.publisher.Sinks.Many.emitError.

A simplified attempt at failing the sequence via the tryEmitError(Throwable) API, generating an onError signal.
public default void
emitNext(T
the value to emit, not null
value
,
Sinks.EmitFailureHandler
the failure handler that allows retrying failed EmitResult.
failureHandler
)

Implements reactor.core.publisher.Sinks.Many.emitNext.

A simplified attempt at emitting a non-null element via the tryEmitNext(Object) API, generating an onNext signal.
Inherited from reactor.core.publisher.ContextHolder:
currentContext
Inherited from reactor.core.publisher.Sinks.Many:
asFluxcurrentSubscriberCounttryEmitCompletetryEmitErrortryEmitNext

Method Detail

emitCompleteback to summary
public default void emitComplete(Sinks.EmitFailureHandler failureHandler)

Implements reactor.core.publisher.Sinks.Many.emitComplete.

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

A simplified attempt at completing via the tryEmitComplete() API, generating an onComplete signal. If the result of the attempt is not a success, implementations SHOULD retry the tryEmitComplete() call IF the provided EmitFailureHandler returns true. Otherwise, failures are dealt with in a predefined way that might depend on the actual sink implementation (see below for the vanilla reactor-core behavior).

Generally, tryEmitComplete() is preferable since it allows a custom handling of error cases, although this implies checking the returned EmitResult and correctly acting on it. This API is intended as a good default for convenience.

When the EmitResult is not a success, vanilla reactor-core operators have the following behavior:

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, a EmitResult#FAIL_NON_SERIALIZED as described above, ...).

Parameters
failureHandler:Sinks.EmitFailureHandler

the failure handler that allows retrying failed EmitResult.

Annotations
@Override
emitErrorback to summary
public default void emitError(Throwable error, Sinks.EmitFailureHandler failureHandler)

Implements reactor.core.publisher.Sinks.Many.emitError.

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

A simplified attempt at failing the sequence via the tryEmitError(Throwable) API, generating an onError signal. If the result of the attempt is not a success, implementations SHOULD retry the tryEmitError(Throwable) call IF the provided EmitFailureHandler returns true. Otherwise, failures are dealt with in a predefined way that might depend on the actual sink implementation (see below for the vanilla reactor-core behavior).

Generally, tryEmitError(Throwable) is preferable since it allows a custom handling of error cases, although this implies checking the returned EmitResult and correctly acting on it. This API is intended as a good default for convenience.

When the EmitResult is not a success, vanilla reactor-core operators have the following behavior:

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, a EmitResult#FAIL_NON_SERIALIZED as described above, ...).

Parameters
error:Throwable

the exception to signal, not null

failureHandler:Sinks.EmitFailureHandler

the failure handler that allows retrying failed EmitResult.

Annotations
@Override
emitNextback to summary
public default void emitNext(T value, Sinks.EmitFailureHandler failureHandler)

Implements reactor.core.publisher.Sinks.Many.emitNext.

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

A simplified attempt at emitting a non-null element via the tryEmitNext(Object) API, generating an onNext signal. If the result of the attempt is not a success, implementations SHOULD retry the tryEmitNext(Object) call IF the provided EmitFailureHandler returns true. Otherwise, failures are dealt with in a predefined way that might depend on the actual sink implementation (see below for the vanilla reactor-core behavior).

Generally, tryEmitNext(Object) is preferable since it allows a custom handling of error cases, although this implies checking the returned EmitResult and correctly acting on it. This API is intended as a good default for convenience.

When the EmitResult is not a success, vanilla reactor-core operators have the following behavior:

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, a EmitResult#FAIL_NON_SERIALIZED as described above, ...).

Parameters
value:T

the value to emit, not null

failureHandler:Sinks.EmitFailureHandler

the failure handler that allows retrying failed EmitResult.

Annotations
@Override