| Interface | Description |
|---|---|
| ServiceClient |
Mid-level client that provides an API similar to low-level
HttpClient, but accepts RequestBuilder
instead of Request, and internally handles service location
and retries. |
| ServiceClientFactory |
Factory for creating
ServiceClient. |
| ServiceLocator |
Used by
ServiceClient to locate services. |
| ServiceRetryPolicy |
Used by
ServiceClient to decide whether to retry requests. |
| Class | Description |
|---|---|
| DiscoveryServiceLocator |
A
ServiceLocator that uses DruidNodeDiscovery. |
| IgnoreHttpResponseHandler |
An HTTP response handler that discards the response and returns nothing.
|
| RequestBuilder | |
| ServiceClientFactoryImpl |
Production implementation of
ServiceClientFactory. |
| ServiceClientImpl |
Production implementation of
ServiceClient. |
| ServiceLocation |
Represents a service location at a particular point in time.
|
| ServiceLocations |
Returned by
ServiceLocator.locate(). |
| StandardRetryPolicy |
Retry policy configurable with a maximum number of attempts and min/max wait time.
|
| StandardRetryPolicy.Builder |
| Exception | Description |
|---|---|
| HttpResponseException |
Returned by
ServiceClient.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 by
ServiceClient.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 by
ServiceClient.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. |
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.