public class RetryExecutor extends Object
Here is an example, how to use this class for a reliable webhooks subscription when a microservice starts:
| Modifier and Type | Class and Description |
|---|---|
static class |
RetryExecutor.ExpectedFailureException |
static interface |
RetryExecutor.RetryTask |
| Constructor and Description |
|---|
RetryExecutor() |
RetryExecutor(int corePoolSize,
int delayAfterFail,
TimeUnit delayAfterFailUnit,
String patternThreadFactory) |
public void stop()
throws InterruptedException
InterruptedExceptionpublic void run(RetryExecutor.RetryTask task)
Copyright © 2020 LeanIX GmbH. All rights reserved.