diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 28295f995..9f9e6ad4a 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -370,6 +370,29 @@ queued commands.
refuse commands and cancel these with an exception.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().
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.
replayFilter(cmd) -> false