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.v1p13p1.io.grpc.stub.CallStreamObserver<T> |
build() |
TestStreams.Builder<T> |
withIsReady(java.util.function.Supplier<java.lang.Boolean> isReady)
Returns a new
TestStreams.Builder like this one with the specified CallStreamObserver.isReady() callback. |
TestStreams.Builder<T> |
withOnCompleted(java.lang.Runnable onCompleted)
Returns a new
TestStreams.Builder like this one with the specified StreamObserver.onCompleted() callback. |
TestStreams.Builder<T> |
withOnError(java.util.function.Consumer<java.lang.Throwable> onError)
Returns a new
TestStreams.Builder like this one with the specified StreamObserver.onError(java.lang.Throwable)
consumer. |
TestStreams.Builder<T> |
withOnError(java.lang.Runnable onError)
Returns a new
TestStreams.Builder like this one with the specified StreamObserver.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.v1p13p1.io.grpc.stub.CallStreamObserver<T> build()