Interface GrpcService.Routing

Enclosing interface:
GrpcService

public static interface GrpcService.Routing
Service specific routing (proto descriptor is provided by GrpcService.proto().
  • Method Summary

    Modifier and Type
    Method
    Description
    bidi(String methodName, io.grpc.stub.ServerCalls.BidiStreamingMethod<ReqT,ResT> method)
    Bidirectional route.
    clientStream(String methodName, io.grpc.stub.ServerCalls.ClientStreamingMethod<ReqT,ResT> method)
    Client streaming route.
    serverStream(String methodName, io.grpc.stub.ServerCalls.ServerStreamingMethod<ReqT,ResT> method)
    Server streaming route.
    unary(String methodName, io.grpc.stub.ServerCalls.UnaryMethod<ReqT,ResT> method)
    Unary 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 type
      ResT - response type
      Parameters:
      methodName - method name
      method - 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 type
      ResT - response type
      Parameters:
      methodName - method name
      method - 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 type
      ResT - response type
      Parameters:
      methodName - method name
      method - 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 type
      ResT - response type
      Parameters:
      methodName - method name
      method - method to handle the route
      Returns:
      updated routing