From c208ff78665026bb9b9fb3acca6b162adaab3dd4 Mon Sep 17 00:00:00 2001
From: ggivo
maintNotificationsConfigenabled()Since: 7.0
+Enables Seamless Connection Handover (SCH) by listening for +server-side maintenance event notifications. When enabled, the client +receives push notifications about maintenance operations and can +proactively reconnect to healthy nodes, reducing failed commands during +maintenance windows.
+Configure endpoint type for reconnection using
+MaintNotificationsConfig.enabled(EndpointType.EXTERNAL_IP)
+or use MaintNotificationsConfig.enabled() for
+auto-detection based on connection characteristics. Disable with
+MaintNotificationsConfig.disabled().
This feature requires Redis Enterprise or a Redis server that +supports maintenance event notifications.
replayFilter(cmd) -> falseOptions to configure command timeouts applied to timeout commands
after dispatching these (active connections, queued while disconnected,
batch buffer). By default, the synchronous API times out commands using
-RedisURI.getTimeout().
RedisURI.getTimeout().
+Use relaxedTimeoutsDuringMaintenance(Duration) to set
+extended timeout during server maintenance operations (default: 10
+seconds). This helps prevent command failures when Seamless Connection
+Handover (SCH) is enabled.
MaintNotificationsConfig.enabled() for
auto-detection based on connection characteristics. Disable with
MaintNotificationsConfig.disabled().
+Use TimeoutOptions.relaxedTimeoutsDuringMaintenance(Duration)
+to set extended timeout during maintenance operations (default: 10
+seconds).
This feature requires Redis Enterprise or a Redis server that supports maintenance event notifications.
Options to configure command timeouts applied to timeout commands
after dispatching these (active connections, queued while disconnected,
batch buffer). By default, the synchronous API times out commands using
-RedisURI.getTimeout().
Use relaxedTimeoutsDuringMaintenance(Duration) to set
-extended timeout during server maintenance operations (default: 10
-seconds). This helps prevent command failures when Seamless Connection
-Handover (SCH) is enabled.
RedisURI.getTimeout().