public class RetryableAction<T> extends Object
NonRetryableException
are
retried. Only errors wrapped in RetryableError
are retried.Modifier and Type | Method and Description |
---|---|
static <T> T |
doRetryableAction(Callable<T> callable,
RetryableParams params)
Static method to repeatedly call action until it succeeds or the max allowed attempts is
reached.
|
public static <T> T doRetryableAction(Callable<T> callable, RetryableParams params) throws Exception
callable
- Callable implementing assertion logicparams
- Retry related parametersException
Copyright © 2024. All rights reserved.