Interface StreamableOperator<T,R>
- Type Parameters:
T- the value type of the upstreamR- the value type of the downstream
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface to map/wrap an upstream
Streamer to an downstream Streamer.- Since:
- 4.0.0
-
Method Summary
-
Method Details
-
apply
@NonNull @NonNull Streamer<? extends R> apply(@NonNull @NonNull StreamerCancellation container, @NonNull @NonNull Streamer<? extends @NonNull T> streamer) throws Throwable Applies a function to the upstreamStreamerand returns a new downstreamStreamer.- Parameters:
container- theStreamerCancellationhandling the cancellation propagation for the downstreamstreamer- the upstreamStreamerinstance- Returns:
- the downstream
Streamerinstance - Throws:
Throwable- on failure
-