Package org.apache.beam.sdk.fn.stream
Class SynchronizedStreamObserver<V>
- java.lang.Object
-
- org.apache.beam.sdk.fn.stream.SynchronizedStreamObserver<V>
-
- All Implemented Interfaces:
org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<V>
public class SynchronizedStreamObserver<V> extends java.lang.Object implements org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<V>AStreamObserverwhich provides synchronous access access to an underlyingStreamObserver.The underlying
StreamObservermust not be used by any other clients.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonCompleted()voidonError(java.lang.Throwable t)voidonNext(V value)static <V> org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<V>wrapping(org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<V> underlying)Create a newSynchronizedStreamObserverwhich will delegate all calls to the underlyingStreamObserver, synchronizing access to that observer.
-
-
-
Method Detail
-
wrapping
public static <V> org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<V> wrapping(org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<V> underlying)
Create a newSynchronizedStreamObserverwhich will delegate all calls to the underlyingStreamObserver, synchronizing access to that observer.
-
onNext
public void onNext(V value)
- Specified by:
onNextin interfaceorg.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<V>
-
onError
public void onError(java.lang.Throwable t)
- Specified by:
onErrorin interfaceorg.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<V>
-
onCompleted
public void onCompleted()
- Specified by:
onCompletedin interfaceorg.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<V>
-
-