keycloak
|
クラス | |
interface | AdvancedRunnable |
interface | Supplier |
静的公開メンバ関数 | |
static int | execute (Runnable runnable, int attemptsCount, long intervalMillis) |
static int | executeWithBackoff (AdvancedRunnable runnable, int attemptsCount, int intervalBaseMillis) |
static< T > T | call (Supplier< T > supplier, int attemptsCount, long intervalMillis) |
静的非公開メンバ関数 | |
static int | computeBackoffInterval (int base, int iteration) |
|
inlinestatic |
Runs the given
at most
times until it passes, leaving
milliseconds between the invocations. The runnable is reexecuted if it throws a RuntimeException or AssertionError.
supplier | |
attemptsCount | Total number of attempts to execute the runnable |
intervalMillis |
|
inlinestaticprivate |
|
inlinestatic |
Runs the given
at most
times until it passes, leaving
milliseconds between the invocations. The runnable is reexecuted if it throws a RuntimeException or AssertionError.
runnable | |
attemptsCount | Total number of attempts to execute the runnable |
intervalMillis |
|
inlinestatic |
Runs the given
at most
times until it passes, leaving some increasing random delay milliseconds between the invocations. It uses Exponential backoff + jitter algorithm to compute the delay. More details https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/
The base for delay is specified by
number.
The runnable is reexecuted if it throws a RuntimeException or AssertionError.
runnable | |
attemptsCount | Total number of attempts to execute the runnable |
intervalBaseMillis | base for the exponential backoff + jitter |