Class RpcServiceRegistry.Builder
java.lang.Object
ru.pathcreator.pyc.rpc.schema.RpcServiceRegistry.Builder
- Enclosing class:
RpcServiceRegistry
Builder для сборки immutable registry снимка до старта сервиса.
Builder used to assemble an immutable registry snapshot before the service starts.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an immutable registry snapshot after validating the collected channel entries.channel(String name, ChannelConfig config) Adds a logical channel entry to the registry.
-
Method Details
-
channel
Adds a logical channel entry to the registry.- Parameters:
name- logical channel name used in reports and validationconfig- channel configuration associated with the logical channel- Returns:
- builder for adding methods to that channel entry
-
build
Builds an immutable registry snapshot after validating the collected channel entries.- Returns:
- immutable registry snapshot
-