public class RetryUtils extends Object
| Constructor and Description |
|---|
RetryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <ApiType> ApiType |
retryUponConflict(ApiInvocation<ApiType> apiTypeApiInvocation,
int maxRetry)
Invokes kubernetes api and will retry upon CONFLICT(409) response.
|
public static <ApiType> ApiType retryUponConflict(ApiInvocation<ApiType> apiTypeApiInvocation, int maxRetry) throws io.kubernetes.client.openapi.ApiException
Note that this helper method is mostly intended for update calls where CONFLICT can be returned when updating resources with a stale resource version.
ApiType - the type parameterapiTypeApiInvocation - the api type api invocation lambdamaxRetry - the max retry countio.kubernetes.client.openapi.ApiException - the api exceptionCopyright © 2022. All rights reserved.