Class RpcServiceRegistry.ChannelBuilder
java.lang.Object
ru.pathcreator.pyc.rpc.schema.RpcServiceRegistry.ChannelBuilder
- Enclosing class:
RpcServiceRegistry
Builder одной logical channel entry внутри registry.
Builder for one logical channel entry inside the registry.
-
Method Summary
Modifier and TypeMethodDescriptionAdds a method definition when explicit request and response Java type names are not needed.<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.<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.
-
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 typeResp- response type- Parameters:
methodName- logical method namemethod- typed method descriptorrequestType- request Java typeresponseType- 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 typeResp- response type- Parameters:
methodName- logical method namemethod- typed method descriptorrequestType- request Java typeresponseType- response Java typeversion- optional logical method versiondescription- optional human-readable description- Returns:
- this channel builder
-
method
Adds a method definition when explicit request and response Java type names are not needed.- Parameters:
methodName- logical method namemethod- typed method descriptor- Returns:
- this channel builder
-