- Source:
Methods
onAuthenticationError(e)
Method invoked when an authentication error is obtained from the server.
Parameters:
Name | Type | Description |
---|---|---|
e |
AuthenticationError | Error | The error encountered. |
- Source:
onClientTimeoutError(e)
Method invoked when an error (different than a server or client timeout, authentication or connection error) is encountered when executing a request.
Parameters:
Name | Type | Description |
---|---|---|
e |
OperationTimedOutError | The timeout error. |
- Source:
onClientTimeoutRetry(e)
Method invoked when an execution is retried as a result of a client-level timeout.
Parameters:
Name | Type | Description |
---|---|---|
e |
Error | The error that caused the retry. |
- Source:
onConnectionError(e)
Method invoked when there is a connection error.
Parameters:
Name | Type | Description |
---|---|---|
e |
Error | The error encountered. |
- Source:
onIgnoreError(e)
Method invoked when an error is marked as ignored by the retry policy.
Parameters:
Name | Type | Description |
---|---|---|
e |
Error | The error that was ignored by the retry policy. |
- Source:
onOtherError(e)
Method invoked when an error (different than a server or client timeout, authentication or connection error) is encountered when executing a request.
Parameters:
Name | Type | Description |
---|---|---|
e |
Error | The error encountered. |
- Source:
onOtherErrorRetry(e)
Method invoked when an error (other than a server or client timeout) is retried.
Parameters:
Name | Type | Description |
---|---|---|
e |
Error | The error that caused the retry. |
- Source:
onReadTimeoutError(e)
Method invoked when a read timeout error is obtained from the server.
Parameters:
Name | Type | Description |
---|---|---|
e |
ResponseError | The error encountered. |
- Source:
onReadTimeoutRetry(e)
Method invoked when an execution is retried as a result of a read timeout from the server (coordinator to replica).
Parameters:
Name | Type | Description |
---|---|---|
e |
Error | The error that caused the retry. |
- Source:
onResponse(latency)
Method invoked when any response is obtained, the response can be the result of a successful execution or a server-side error.
Parameters:
Name | Type | Description |
---|---|---|
latency |
Array.<Number> | The latency represented in a |
- Source:
onSpeculativeExecution()
Method invoked when a speculative execution is started.
- Source:
onSuccessfulResponse(latency)
Method invoked when a response is obtained successfully.
Parameters:
Name | Type | Description |
---|---|---|
latency |
Array.<Number> | The latency represented in a |
- Source:
onUnavailableError(e)
Method invoked when an unavailable error is obtained from the server.
Parameters:
Name | Type | Description |
---|---|---|
e |
ResponseError | The error encountered. |
- Source:
onUnavailableRetry(e)
Method invoked when an execution is retried as a result of an unavailable error from the server.
Parameters:
Name | Type | Description |
---|---|---|
e |
Error | The error that caused the retry. |
- Source:
onWriteTimeoutError(e)
Method invoked when a write timeout error is obtained from the server.
Parameters:
Name | Type | Description |
---|---|---|
e |
ResponseError | The error encountered. |
- Source:
onWriteTimeoutRetry(e)
Method invoked when an execution is retried as a result of a write timeout from the server (coordinator to replica).
Parameters:
Name | Type | Description |
---|---|---|
e |
Error | The error that caused the retry. |
- Source: