Skip to content

Properly handle broken resource #3182

Answered by sazzad16
PedroMPagani asked this question in Q&A
Discussion options

You must be logged in to vote

For the first part:

Try UnifiedJedis with RetryableCommandExecutor.

final int maxAttempts = 5;
final Duration maxRetriesDuration = Duration.ofSeconds(2);

PooledConnectionProvider pooledConnectionProvider = new PooledConnectionProvider(hostAndPort, clientConfig);
RetryableCommandExecutor retryableCommandExecutor = new RetryableCommandExecutor(pooledConnectionProvider, maxAttempts, maxRetriesDuration);
UnifiedJedis jedis = new UnifiedJedis(retryableCommandExecutor);

For the second part:

Yes, subscribe is not a strength of this library. We welcome any contribution 🙂

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@sazzad16
Comment options

@PedroMPagani
Comment options

@sazzad16
Comment options

@PedroMPagani
Comment options

@sazzad16
Comment options

Answer selected by PedroMPagani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants