Package org.apache.druid.rpc
Interface ServiceClientFactory
- All Known Implementing Classes:
ServiceClientFactoryImpl
public interface ServiceClientFactory
Factory for creating
ServiceClient.-
Method Summary
Modifier and TypeMethodDescriptionmakeClient(String serviceName, ServiceLocator serviceLocator, ServiceRetryPolicy retryPolicy) Creates a client for a particular service.
-
Method Details
-
makeClient
ServiceClient makeClient(String serviceName, ServiceLocator serviceLocator, ServiceRetryPolicy retryPolicy) Creates a client for a particular service.- 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
-