Class RpcMethodSchema

java.lang.Object
ru.pathcreator.pyc.rpc.schema.RpcMethodSchema

public final class RpcMethodSchema extends Object
Startup-time metadata одного метода, используемая в RpcServiceRegistry.

Startup-time method metadata used by RpcServiceRegistry.

Класс существует только для validation, reporting и schema-like анализа до старта нагрузки. В hot path транспорта он не участвует.

This class exists purely for validation, reporting, and schema-like analysis before a service starts accepting load. It does not participate in the transport hot path.

  • Method Details

    • name

      public String name()
      Возвращает логическое имя метода в registry.

      Returns the logical method name used in the registry.

      Returns:
      logical method name
    • method

      public RpcMethod<?,?> method()
      Возвращает underlying typed RPC method descriptor.

      Returns the underlying typed RPC method definition.

      Returns:
      underlying method descriptor
    • requestMessageTypeId

      public int requestMessageTypeId()
      Возвращает request message type id.

      Returns the request message type id.

      Returns:
      request message type id
    • responseMessageTypeId

      public int responseMessageTypeId()
      Возвращает response message type id.

      Returns the response message type id.

      Returns:
      response message type id
    • requestTypeName

      public String requestTypeName()
      Возвращает имя Java-типа запроса, если оно было передано в registry.

      Returns the request Java type name when supplied to the registry.

      Returns:
      request Java type name
    • responseTypeName

      public String responseTypeName()
      Возвращает имя Java-типа ответа, если оно было передано в registry.

      Returns the response Java type name when supplied to the registry.

      Returns:
      response Java type name
    • version

      public String version()
      Возвращает optional logical version метода.

      Returns the optional logical method version.

      Returns:
      logical method version or null
    • description

      public String description()
      Возвращает optional human-readable описание метода.

      Returns the optional human-readable method description.

      Returns:
      method description or null