Interface SynchronousSink<T>

Type Parameters:
T - the output value type

public interface SynchronousSink<T>
Interface to produce synchronously "one signal" to an underlying Subscriber.

At most one next(T) call and/or one complete() or error(Throwable) should be called per invocation of the generator function.

Calling a SynchronousSink outside of a generator consumer or function, e.g. using an async callback, is forbidden. You can use FluxSink or MonoSink based generators for these situations.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    default ContextView
    Return the current subscriber's context as a ContextView for inspection.
    Deprecated.
    To be removed in 3.6.0 at the earliest.
    void
     
    void
    next(T t)
    Try emitting, might throw an unchecked exception.