- Enclosing interface:
GrpcService
public static interface GrpcService.Routing
Service specific routing (proto descriptor is provided by
GrpcService.proto()
.-
Method Summary
Modifier and TypeMethodDescription<ReqT,
ResT>
GrpcService.RoutingBidirectional route.<ReqT,
ResT>
GrpcService.RoutingclientStream
(String methodName, io.grpc.stub.ServerCalls.ClientStreamingMethod<ReqT, ResT> method) Client streaming route.<ReqT,
ResT>
GrpcService.RoutingserverStream
(String methodName, io.grpc.stub.ServerCalls.ServerStreamingMethod<ReqT, ResT> method) Server streaming route.<ReqT,
ResT>
GrpcService.RoutingUnary route.
-
Method Details
-
unary
<ReqT,ResT> GrpcService.Routing unary(String methodName, io.grpc.stub.ServerCalls.UnaryMethod<ReqT, ResT> method) Unary route.- Type Parameters:
ReqT
- request typeResT
- response type- Parameters:
methodName
- method namemethod
- method to handle the route- Returns:
- updated routing
-
bidi
<ReqT,ResT> GrpcService.Routing bidi(String methodName, io.grpc.stub.ServerCalls.BidiStreamingMethod<ReqT, ResT> method) Bidirectional route.- Type Parameters:
ReqT
- request typeResT
- response type- Parameters:
methodName
- method namemethod
- method to handle the route- Returns:
- updated routing
-
serverStream
<ReqT,ResT> GrpcService.Routing serverStream(String methodName, io.grpc.stub.ServerCalls.ServerStreamingMethod<ReqT, ResT> method) Server streaming route.- Type Parameters:
ReqT
- request typeResT
- response type- Parameters:
methodName
- method namemethod
- method to handle the route- Returns:
- updated routing
-
clientStream
<ReqT,ResT> GrpcService.Routing clientStream(String methodName, io.grpc.stub.ServerCalls.ClientStreamingMethod<ReqT, ResT> method) Client streaming route.- Type Parameters:
ReqT
- request typeResT
- response type- Parameters:
methodName
- method namemethod
- method to handle the route- Returns:
- updated routing
-