Class ServiceClientFactoryImpl

    • Constructor Detail

      • ServiceClientFactoryImpl

        public ServiceClientFactoryImpl​(org.apache.druid.java.util.http.client.HttpClient httpClient,
                                        ScheduledExecutorService connectExec)
    • Method Detail

      • makeClient

        public ServiceClient makeClient​(String serviceName,
                                        ServiceLocator serviceLocator,
                                        ServiceRetryPolicy retryPolicy)
        Description copied from interface: ServiceClientFactory
        Creates a client for a particular service.
        Specified by:
        makeClient in interface ServiceClientFactory
        Parameters:
        serviceName - name of the service, which is used in log messages and exceptions.
        serviceLocator - service locator. This is not owned by the returned client, and should be closed separately when you are done with it.
        retryPolicy - retry policy