You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/develop/clients/jedis/failover.md
+93Lines changed: 93 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,6 +195,43 @@ The `MultiClusterClientConfig` builder has the following options to configure re
195
195
|`retryIncludedExceptionList()`| See description |`List` of `Throwable` classes that should be considered as failures to be retried. By default, it includes just `JedisConnectionException`. |
196
196
|`retryIgnoreExceptionList()`|`null`|`List` of `Throwable` classes that should be ignored for retry. |
197
197
198
+
### Failover callbacks
199
+
200
+
You may want to take some custom action when a failover occurs.
201
+
For example, you may want to log a warning, increment a metric,
202
+
or externally persist the cluster connection state.
203
+
204
+
You can provide a custom failover action using a class that
205
+
implements `java.util.function.Consumer`. You should place
206
+
the custom action in the `accept()` method, as shown in the example below.
0 commit comments