Class BaseFutureStreamObserver<T>

  • Type Parameters:
    T - the response type
    All Implemented Interfaces:
    io.grpc.stub.StreamObserver<T>
    Direct Known Subclasses:
    StreamStreamObserver

    public abstract class BaseFutureStreamObserver<T>
    extends Object
    implements io.grpc.stub.StreamObserver<T>
    An abstract StreamObserver that, on error, will redefine a StatusRuntimeException with a status of Status.UNIMPLEMENTED as an UnsupportedOperationException.
    Since:
    14.1.1.2206.5
    • Constructor Detail

      • BaseFutureStreamObserver

        public BaseFutureStreamObserver()
    • Method Detail

      • onError

        public void onError​(Throwable throwable)
        If throwable is a StatusRuntimeException with a status of Status.UNIMPLEMENTED, complete the future exceptionally with an UnsupportedOperationException.
        Specified by:
        onError in interface io.grpc.stub.StreamObserver<T>
        Parameters:
        throwable - the stream error