Class RpcServiceRegistry.ChannelBuilder

java.lang.Object
ru.pathcreator.pyc.rpc.schema.RpcServiceRegistry.ChannelBuilder
Enclosing class:
RpcServiceRegistry

public static final class RpcServiceRegistry.ChannelBuilder extends Object
Builder одной logical channel entry внутри registry.

Builder for one logical channel entry inside the registry.

  • Method Details

    • method

      public <Req,Resp> RpcServiceRegistry.ChannelBuilder method(String methodName, RpcMethod<Req,Resp> method, Class<Req> requestType, Class<Resp> responseType)
      Adds a typed method definition with explicit request and response type names.
      Type Parameters:
      Req - request type
      Resp - response type
      Parameters:
      methodName - logical method name
      method - typed method descriptor
      requestType - request Java type
      responseType - response Java type
      Returns:
      this channel builder
    • method

      public <Req,Resp> RpcServiceRegistry.ChannelBuilder method(String methodName, RpcMethod<Req,Resp> method, Class<Req> requestType, Class<Resp> responseType, String version, String description)
      Adds a typed method definition with optional version and description metadata.
      Type Parameters:
      Req - request type
      Resp - response type
      Parameters:
      methodName - logical method name
      method - typed method descriptor
      requestType - request Java type
      responseType - response Java type
      version - optional logical method version
      description - optional human-readable description
      Returns:
      this channel builder
    • method

      public RpcServiceRegistry.ChannelBuilder method(String methodName, RpcMethod<?,?> method)
      Adds a method definition when explicit request and response Java type names are not needed.
      Parameters:
      methodName - logical method name
      method - typed method descriptor
      Returns:
      this channel builder