Interface ServerStreamObserver<GrpcResponseT>

Type Parameters:
GrpcResponseT - the expected gRPC response type
All Superinterfaces:
ResponseObserver<GrpcResponseT>, io.grpc.stub.StreamObserver<GrpcResponseT>
All Known Implementing Classes:
ErrorMappingStreamObserver

public interface ServerStreamObserver<GrpcResponseT> extends io.grpc.stub.StreamObserver<GrpcResponseT>, ResponseObserver<GrpcResponseT>
A simple extension of StreamObserver, meant to be used in conjunction with ServerCallStreamObserver. In order to avoid depending on ServerCallStreamObserver, which is experimental (as of now), we introduce this simple interface, and we can easily change the implementation whenever the experimental API is changed.
  • Method Details

    • isCancelled

      boolean isCancelled()
      Specified by:
      isCancelled in interface ResponseObserver<GrpcResponseT>
      See Also:
      • ServerCallStreamObserver.isCancelled()
    • setOnCancelHandler

      void setOnCancelHandler(Runnable handler)
      See Also:
      • ServerCallStreamObserver.setOnCancelHandler(Runnable)