public interface StreamRequestProxyResponseBuilderStep<BUILDER extends BuilderStep,ReqT,RespT> extends BuilderStep, MethodStubBuilder<ReqT,RespT>
| Modifier and Type | Method and Description |
|---|---|
BUILDER |
willProxyTo(Function<io.grpc.stub.StreamObserver<RespT>,io.grpc.stub.StreamObserver<ReqT>> streamRequestResponseProxy)
Defines a proxying response, which will proxy the request to given
Response. |
buildBUILDER willProxyTo(@Nonnull Function<io.grpc.stub.StreamObserver<RespT>,io.grpc.stub.StreamObserver<ReqT>> streamRequestResponseProxy)
Defines a proxying response, which will proxy the request to given Response. The
user is responsible that the request is completed correctly.
Should be used when there needs to be more logic in the response method than returning a
simple response.
For example:
.willProxyTo((responseObserver) -> new StreamObserver
Copyright © 2023. All rights reserved.