Package org.apache.druid.rpc
Class ServiceClientFactoryImpl
java.lang.Object
org.apache.druid.rpc.ServiceClientFactoryImpl
- All Implemented Interfaces:
ServiceClientFactory
Production implementation of
ServiceClientFactory.-
Constructor Summary
ConstructorsConstructorDescriptionServiceClientFactoryImpl(HttpClient httpClient, ScheduledExecutorService connectExec) -
Method Summary
Modifier and TypeMethodDescriptionmakeClient(String serviceName, ServiceLocator serviceLocator, ServiceRetryPolicy retryPolicy) Creates a client for a particular service.
-
Constructor Details
-
ServiceClientFactoryImpl
-
-
Method Details
-
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
-