Interface StreamSink<T>

Type Parameters:
T - the item type to be offered
All Known Subinterfaces:
StreamProcessor<In,Out>
All Known Implementing Classes:
DispatchStreamProcessor

public interface StreamSink<@NonNull T>
An interface to submit items and terminal events to a consumer that indacates when the processing of said item or terminal event has completed, similar to how Flow.Subscriber can receive events.

The general contract is to call next(Object) zero or more times, then call finish(Throwable) at most once, all in a non-overlapping fashion and only if the returned CompletionStage has completed in some fashion.

Since:
4.0.0