Package org.apache.druid.rpc
Class ServiceClientFactoryImpl
- java.lang.Object
-
- org.apache.druid.rpc.ServiceClientFactoryImpl
-
- All Implemented Interfaces:
ServiceClientFactory
public class ServiceClientFactoryImpl extends Object implements ServiceClientFactory
Production implementation ofServiceClientFactory.
-
-
Constructor Summary
Constructors Constructor Description ServiceClientFactoryImpl(org.apache.druid.java.util.http.client.HttpClient httpClient, ScheduledExecutorService connectExec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceClientmakeClient(String serviceName, ServiceLocator serviceLocator, ServiceRetryPolicy retryPolicy)Creates a client for a particular service.
-
-
-
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:ServiceClientFactoryCreates a client for a particular service.- Specified by:
makeClientin interfaceServiceClientFactory- 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
-
-