Package org.apache.pekko.http.impl.util
Class One2OneBidiFlow
java.lang.Object
org.apache.pekko.http.impl.util.One2OneBidiFlow
INTERNAL API
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <I,O> org.apache.pekko.stream.scaladsl.BidiFlow<I, I, O, O, org.apache.pekko.NotUsed> apply(int maxPending, scala.Function1<Object, Throwable> outputTruncationException, scala.Function1<Object, Throwable> unexpectedOutputException) Creates a genericBidiFlowwhich verifies that another flow produces exactly one output element per input element, at the right time.
- 
Constructor Details- 
One2OneBidiFlowpublic One2OneBidiFlow()
 
- 
- 
Method Details- 
applypublic static <I,O> org.apache.pekko.stream.scaladsl.BidiFlow<I,I, applyO, O, org.apache.pekko.NotUsed> (int maxPending, scala.Function1<Object, Throwable> outputTruncationException, scala.Function1<Object, Throwable> unexpectedOutputException) Creates a genericBidiFlowwhich verifies that another flow produces exactly one output element per input element, at the right time. Specifically it1. triggers an UnexpectedOutputExceptionif the inner flow produces an output element before having consumed the respective input element. 2. triggers anOutputTruncationExceptionif the inner flow completes before having produced an output element for every input element. 3. triggers anOutputTruncationExceptionif the inner flow cancels its inputs before the upstream completes its stream of inputs. 4. Backpressures the input side if the maximum number of pending output elements has been reached, which is given via themaxPendingparameter. You can use -1 to disable this feature.- Parameters:
- maxPending- (undocumented)
- outputTruncationException- (undocumented)
- unexpectedOutputException- (undocumented)
- Returns:
- (undocumented)
 
 
-