SyncClientImpl
Attributes
- Graph
-
- Supertypes
-
trait SyncClienttrait AutoCloseabletrait HttpClientFactory[SyncClient]trait SyncClientCompatclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Attributes
- Definition Classes
-
SyncClient -> AutoCloseable
Inherited methods
Attributes
- Inherited from:
- SyncClientCompat
Attributes
- Inherited from:
- SyncClient
Read the response as a specified type
Read the response as a specified type
Attributes
- Returns
-
a response translated to the specified type
- Throws
-
HttpClientException
if failed to read or process the response
- Inherited from:
- SyncClientCompat
Attributes
- Inherited from:
- SyncClient
Send an RPC request (POST) and return the RPC response. This method will throw RPCException when an error happens
Send an RPC request (POST) and return the RPC response. This method will throw RPCException when an error happens
Attributes
- Throws
-
RPCException
when RPC request fails
- Inherited from:
- SyncClient
Send an HTTP request and get the response. It will throw an exception for non-successful responses. For example, when receiving non-retryable status code (e.g., 4xx), it will throw HttpClientException. For server side failures (5xx responses), this continues request retry until the max retry count.
Send an HTTP request and get the response. It will throw an exception for non-successful responses. For example, when receiving non-retryable status code (e.g., 4xx), it will throw HttpClientException. For server side failures (5xx responses), this continues request retry until the max retry count.
If it exceeds the number of max retry attempts, HttpClientMaxRetryException will be thrown.
Attributes
- Throws
-
HttpClientException
for non-retryable error is occurred
HttpClientMaxRetryExceptionif max retry reaches
- Inherited from:
- SyncClient
Send an HTTP request and returns a response (or the last response if the request is retried). Unlike send, this method returns a regular Http Response object even for non-retryable responses (e.g., 4xx error code). For retryable responses (e.g., 5xx) this continues retry until the max retry count.
Send an HTTP request and returns a response (or the last response if the request is retried). Unlike send, this method returns a regular Http Response object even for non-retryable responses (e.g., 4xx error code). For retryable responses (e.g., 5xx) this continues retry until the max retry count.
After reaching the max retry count, it will return a the last response even for 5xx status code.
Attributes
- Inherited from:
- SyncClient
Attributes
- Inherited from:
- HttpClientFactory
Attributes
- Inherited from:
- HttpClientFactory
Attributes
- Inherited from:
- HttpClientFactory
Attributes
- Inherited from:
- HttpClientFactory
Attributes
- Inherited from:
- HttpClientFactory
Attributes
- Inherited from:
- HttpClientFactory
Attributes
- Inherited from:
- HttpClientFactory
Attributes
- Inherited from:
- HttpClientFactory
Attributes
- Inherited from:
- HttpClientFactory