Interface CallShouldBackoff<ResponseT>
- All Superinterfaces:
Serializable
Informs whether a call to an API should backoff.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isTrue()
Report whether to backoff.void
update
(UserCodeExecutionException exception) Update the state of whether to backoff using information about the exception.void
Update the state of whether to backoff using information about the response.
-
Method Details
-
update
Update the state of whether to backoff using information about the exception. -
update
Update the state of whether to backoff using information about the response. -
isTrue
boolean isTrue()Report whether to backoff.
-