public abstract class JedisClusterCommand<T> extends Object
Constructor and Description |
---|
JedisClusterCommand(JedisClusterConnectionHandler connectionHandler,
int maxAttempts) |
JedisClusterCommand(JedisClusterConnectionHandler connectionHandler,
int maxAttempts,
Duration maxTotalRetriesDuration) |
Modifier and Type | Method and Description |
---|---|
abstract T |
execute(Jedis connection) |
T |
run(int keyCount,
String... keys) |
T |
run(String key) |
T |
runBinary(byte[] key) |
T |
runBinary(int keyCount,
byte[]... keys) |
T |
runWithAnyNode() |
protected void |
sleep(long sleepMillis) |
public JedisClusterCommand(JedisClusterConnectionHandler connectionHandler, int maxAttempts)
public JedisClusterCommand(JedisClusterConnectionHandler connectionHandler, int maxAttempts, Duration maxTotalRetriesDuration)
connectionHandler
- maxAttempts
- maxTotalRetriesDuration
- No more attempts after we have been trying for this long.Copyright © 2023. All rights reserved.