Class RpcServiceRegistry.Builder

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

public static final class RpcServiceRegistry.Builder extends Object
Builder для сборки immutable registry снимка до старта сервиса.

Builder used to assemble an immutable registry snapshot before the service starts.

  • Method Details

    • channel

      public RpcServiceRegistry.ChannelBuilder channel(String name, ChannelConfig config)
      Adds a logical channel entry to the registry.
      Parameters:
      name - logical channel name used in reports and validation
      config - channel configuration associated with the logical channel
      Returns:
      builder for adding methods to that channel entry
    • build

      public RpcServiceRegistry build()
      Builds an immutable registry snapshot after validating the collected channel entries.
      Returns:
      immutable registry snapshot