Package io.hekate.rpc

Interface RpcServerConfigProvider


  • public interface RpcServerConfigProvider
    Provider of RPC servers configuration.

    Instances of this interface are responsible for providing RPC servers configuration that were obtained from some third party sources or constructed dynamically based on the provider-specific rules. Instances of this interface can be registered via RpcServiceFactory.setServerProviders(List) method.

    Another approach to register RPC servers configuration is to use RpcServiceFactory.setServers(List) method.

    • Method Detail

      • configureRpcServers

        Collection<RpcServerConfig> configureRpcServers()
        Returns a collection of RPC server configurations that should be registered within the RpcService.
        Returns:
        RPC servers configuration.