Class GrpcMethodDescriptor<ReqT,ResT>

java.lang.Object
io.helidon.webserver.grpc.GrpcMethodDescriptor<ReqT,ResT>
Type Parameters:
ReqT - request type
ResT - response type

public class GrpcMethodDescriptor<ReqT,ResT> extends Object
Encapsulates all metadata necessary to define a gRPC method.
  • Method Details

    • name

      public String name()
      Return the name of the method.
      Returns:
      method name
    • descriptor

      public io.grpc.MethodDescriptor<ReqT,ResT> descriptor()
      Return gRPC method descriptor.
      Returns:
      gRPC method descriptor
    • callHandler

      public io.grpc.ServerCallHandler<ReqT,ResT> callHandler()
      Return the call handler.
      Returns:
      call handler
    • requestType

      public Class<ReqT> requestType()
      Return the method's request type.
      Returns:
      request type
    • responseType

      public Class<ResT> responseType()
      Return the method's response type.
      Returns:
      response type
    • context

      public Map<io.grpc.Context.Key<?>,Object> context()
      Obtain the Map of Context.Keys and values to add to the call context when this method is invoked.
      Returns:
      an unmodifiable Map of Context.Keys and values to add to the call context when this method is invoked
    • interceptors

      public WeightedBag<io.grpc.ServerInterceptor> interceptors()
      Obtain the ServerInterceptors to use for this method.
      Returns:
      the ServerInterceptors to use for this method
    • toString

      public String toString()
      Overrides:
      toString in class Object