Class MethodDescriptor<ReqT,​ResT>

  • Type Parameters:
    ReqT - request type
    ResT - response type

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

      • 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
      • 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 PriorityBag<io.grpc.ServerInterceptor> interceptors()
        Obtain the ServerInterceptors to use for this method.
        Returns:
        the ServerInterceptors to use for this method