Package org.apache.beam.sdk.fn.test
Class TestStreams.Builder<T>
java.lang.Object
org.apache.beam.sdk.fn.test.TestStreams.Builder<T>
- Enclosing class:
TestStreams
A builder for a test
CallStreamObserver
that performs various callbacks.-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.CallStreamObserver
<T> build()
withIsReady
(Supplier<Boolean> isReady) Returns a newTestStreams.Builder
like this one with the specifiedCallStreamObserver.isReady()
callback.withOnCompleted
(Runnable onCompleted) Returns a newTestStreams.Builder
like this one with the specifiedStreamObserver.onCompleted()
callback.withOnError
(Runnable onError) Returns a newTestStreams.Builder
like this one with the specifiedStreamObserver.onError(java.lang.Throwable)
callback.withOnError
(Consumer<Throwable> onError) Returns a newTestStreams.Builder
like this one with the specifiedStreamObserver.onError(java.lang.Throwable)
consumer.
-
Method Details
-
withIsReady
Returns a newTestStreams.Builder
like this one with the specifiedCallStreamObserver.isReady()
callback. -
withOnCompleted
Returns a newTestStreams.Builder
like this one with the specifiedStreamObserver.onCompleted()
callback. -
withOnError
Returns a newTestStreams.Builder
like this one with the specifiedStreamObserver.onError(java.lang.Throwable)
callback. -
withOnError
Returns a newTestStreams.Builder
like this one with the specifiedStreamObserver.onError(java.lang.Throwable)
consumer. -
build
-