public class RetryableClusterCommandExecutor extends Object implements JedisCommandExecutor
Constructor and Description |
---|
RetryableClusterCommandExecutor(JedisClusterConnectionProvider provider,
int maxAttempts,
Duration maxTotalRetriesDuration) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<T> T |
executeCommand(CommandObject<T> commandObject) |
protected void |
sleep(long sleepMillis) |
public RetryableClusterCommandExecutor(JedisClusterConnectionProvider provider, int maxAttempts, Duration maxTotalRetriesDuration)
public void close()
close
in interface AutoCloseable
public final <T> T executeCommand(CommandObject<T> commandObject)
executeCommand
in interface JedisCommandExecutor
protected void sleep(long sleepMillis)
Copyright © 2021. All rights reserved.