public class RetryableCommandExecutor extends Object implements CommandExecutor
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxAttempts |
protected Duration |
maxTotalRetriesDuration |
protected ConnectionProvider |
provider |
| Constructor and Description |
|---|
RetryableCommandExecutor(ConnectionProvider provider,
int maxAttempts,
Duration maxTotalRetriesDuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> T |
executeCommand(CommandObject<T> commandObject) |
protected void |
sleep(long sleepMillis) |
protected final ConnectionProvider provider
protected final int maxAttempts
protected final Duration maxTotalRetriesDuration
public RetryableCommandExecutor(ConnectionProvider provider, int maxAttempts, Duration maxTotalRetriesDuration)
public void close()
close in interface AutoCloseablepublic final <T> T executeCommand(CommandObject<T> commandObject)
executeCommand in interface CommandExecutorprotected void sleep(long sleepMillis)
Copyright © 2022. All rights reserved.