RespT
- type of the response messageReqT
- type of the request message@NotThreadSafe public class DataMessageClientResponseObserver<ReqT,RespT> extends DataMessageMarshallerProvider<ReqT,RespT> implements io.grpc.stub.ClientResponseObserver<ReqT,RespT>
StreamObserver
that handles raw data buffers.Constructor and Description |
---|
DataMessageClientResponseObserver(io.grpc.stub.StreamObserver<RespT> observer,
DataMessageMarshaller<ReqT> requestMarshaller,
DataMessageMarshaller<RespT> responseMarshaller) |
Modifier and Type | Method and Description |
---|---|
void |
beforeStart(io.grpc.stub.ClientCallStreamObserver<ReqT> requestStream) |
void |
onCompleted() |
void |
onError(Throwable t) |
void |
onNext(RespT value) |
getRequestMarshaller, getResponseMarshaller
public DataMessageClientResponseObserver(io.grpc.stub.StreamObserver<RespT> observer, DataMessageMarshaller<ReqT> requestMarshaller, DataMessageMarshaller<RespT> responseMarshaller)
observer
- the original response observerrequestMarshaller
- the marshaller for the requestresponseMarshaller
- the marshaller for the responsepublic void onNext(RespT value)
onNext
in interface io.grpc.stub.StreamObserver<RespT>
public void onError(Throwable t)
onError
in interface io.grpc.stub.StreamObserver<RespT>
public void onCompleted()
onCompleted
in interface io.grpc.stub.StreamObserver<RespT>
Copyright © 2023. All Rights Reserved.