Package com.styra.opa.openapi.utils
Class Retries.Builder
java.lang.Object
com.styra.opa.openapi.utils.Retries.Builder
- Enclosing class:
- Retries
-
Method Summary
Modifier and TypeMethodDescriptionaction
(Callable<HttpResponse<InputStream>> action) Sets the HTTP callback to be retried.build()
retryConfig
(RetryConfig retryConfig) Defines the retry configuration.statusCodes
(List<String> statusCodes) Defines the status codes that should be considered as errors.
-
Method Details
-
action
Sets the HTTP callback to be retried.- Parameters:
action
- The function called on retry.- Returns:
- The builder instance.
-
retryConfig
Defines the retry configuration.- Parameters:
retryConfig
- The retry configuration to use.- Returns:
- The builder instance.
-
statusCodes
Defines the status codes that should be considered as errors.- Parameters:
statusCodes
- The list of status codes to treat as errors.- Returns:
- The builder instance.
-
build
-