Package io.grpc

Class ConfiguratorRegistry


  • final class ConfiguratorRegistry
    extends java.lang.Object
    A registry for Configurator instances.

    This class is responsible for maintaining a list of configurators and providing access to them. The default registry can be obtained using getDefaultRegistry().

    • Field Detail

      • wasConfiguratorsSet

        private boolean wasConfiguratorsSet
      • configFrozen

        private boolean configFrozen
      • configurators

        private java.util.List<Configurator> configurators
    • Constructor Detail

      • ConfiguratorRegistry

        ConfiguratorRegistry()
    • Method Detail

      • getDefaultRegistry

        public static ConfiguratorRegistry getDefaultRegistry()
        Returns the default global instance of the configurator registry.
      • setConfigurators

        public void setConfigurators​(java.util.List<? extends Configurator> configurators)
        Sets the configurators in this registry. This method can only be called once.
        Parameters:
        configurators - the configurators to set
        Throws:
        java.lang.IllegalStateException - if this method is called more than once
      • getConfigurators

        public java.util.List<Configurator> getConfigurators()
        Returns a list of the configurators in this registry.
      • wasSetConfiguratorsCalled

        public boolean wasSetConfiguratorsCalled()