Class ServiceClientFactoryImpl

java.lang.Object
org.apache.druid.rpc.ServiceClientFactoryImpl
All Implemented Interfaces:
ServiceClientFactory

public class ServiceClientFactoryImpl extends Object implements ServiceClientFactory
Production implementation of ServiceClientFactory.
  • Constructor Details

  • Method Details

    • 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