Package io.grpc

Class ManagedChannelRegistry

    • Constructor Detail

      • ManagedChannelRegistry

        public ManagedChannelRegistry()
    • Method Detail

      • register

        public void register​(ManagedChannelProvider provider)
        Register a provider.

        If the provider's isAvailable() returns false, this method will throw IllegalArgumentException.

        Providers will be used in priority order. In case of ties, providers are used in registration order.

      • getDefaultRegistry

        public static ManagedChannelRegistry getDefaultRegistry()
        Returns the default registry that loads providers via the Java service loader mechanism.