Package org.apache.druid.rpc
Interface ServiceClientFactory
-
- All Known Implementing Classes:
ServiceClientFactoryImpl
public interface ServiceClientFactoryFactory for creatingServiceClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServiceClientmakeClient(String serviceName, ServiceLocator serviceLocator, ServiceRetryPolicy retryPolicy)Creates a client for a particular service.
-
-
-
Method Detail
-
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
-
-