Package org.apache.druid.rpc
-
Interface Summary Interface Description ServiceClient Mid-level client that provides an API similar to low-levelHttpClient, but acceptsRequestBuilderinstead ofRequest, and internally handles service location and retries.ServiceClientFactory Factory for creatingServiceClient.ServiceLocator Used byServiceClientto locate services.ServiceRetryPolicy Used byServiceClientto decide whether to retry requests. -
Class Summary Class Description DiscoveryServiceLocator AServiceLocatorthat usesDruidNodeDiscovery.FixedSetServiceLocator Basic implmentation ofServiceLocatorthat returns a service location from a static set of locations.IgnoreHttpResponseHandler An HTTP response handler that discards the response and returns nothing.RequestBuilder ServiceClientFactoryImpl Production implementation ofServiceClientFactory.ServiceClientImpl Production implementation ofServiceClient.ServiceLocation Represents a service location at a particular point in time.ServiceLocations Returned byServiceLocator.locate().StandardRetryPolicy Retry policy configurable with a maximum number of attempts and min/max wait time.StandardRetryPolicy.Builder -
Exception Summary Exception Description HttpResponseException Returned byServiceClient.asyncRequest(org.apache.druid.rpc.RequestBuilder, org.apache.druid.java.util.http.client.response.HttpResponseHandler<IntermediateType, FinalType>)when a request has failed due to an HTTP response.RpcException ServiceClosedException Returned byServiceClient.asyncRequest(org.apache.druid.rpc.RequestBuilder, org.apache.druid.java.util.http.client.response.HttpResponseHandler<IntermediateType, FinalType>)when a request has failed because the service is closed.ServiceNotAvailableException Returned byServiceClient.asyncRequest(org.apache.druid.rpc.RequestBuilder, org.apache.druid.java.util.http.client.response.HttpResponseHandler<IntermediateType, FinalType>)when a request has failed because the service is not available.