public static class TestStreams.Builder<T>
extends java.lang.Object
CallStreamObserver that performs various callbacks.| Modifier and Type | Method and Description | 
|---|---|
| org.apache.beam.vendor.grpc.v1p21p0.io.grpc.stub.CallStreamObserver<T> | build() | 
| TestStreams.Builder<T> | withIsReady(java.util.function.Supplier<java.lang.Boolean> isReady)Returns a new  TestStreams.Builderlike this one with the specifiedCallStreamObserver.isReady()callback. | 
| TestStreams.Builder<T> | withOnCompleted(java.lang.Runnable onCompleted)Returns a new  TestStreams.Builderlike this one with the specifiedStreamObserver.onCompleted()callback. | 
| TestStreams.Builder<T> | withOnError(java.util.function.Consumer<java.lang.Throwable> onError)Returns a new  TestStreams.Builderlike this one with the specifiedStreamObserver.onError(java.lang.Throwable)consumer. | 
| TestStreams.Builder<T> | withOnError(java.lang.Runnable onError)Returns a new  TestStreams.Builderlike this one with the specifiedStreamObserver.onError(java.lang.Throwable)callback. | 
public TestStreams.Builder<T> withIsReady(java.util.function.Supplier<java.lang.Boolean> isReady)
TestStreams.Builder like this one with the specified CallStreamObserver.isReady() callback.public TestStreams.Builder<T> withOnCompleted(java.lang.Runnable onCompleted)
TestStreams.Builder like this one with the specified StreamObserver.onCompleted() callback.public TestStreams.Builder<T> withOnError(java.lang.Runnable onError)
TestStreams.Builder like this one with the specified StreamObserver.onError(java.lang.Throwable)
 callback.public TestStreams.Builder<T> withOnError(java.util.function.Consumer<java.lang.Throwable> onError)
TestStreams.Builder like this one with the specified StreamObserver.onError(java.lang.Throwable)
 consumer.public org.apache.beam.vendor.grpc.v1p21p0.io.grpc.stub.CallStreamObserver<T> build()