diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 19e8c2b9d..057922ab6 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -327,7 +327,7 @@ client.setOptions(ClientOptions.builder()
pingBefor eActivateConnection
pingBeforeActivateConnection
true
replayFilter
(cmd) -> false
Since: 6.6
+Controls which commands are to be filtered out in case the driver
+attempts to reconnect to the server. Returning false
means
+that the command would not be filtered out.
This flag has no effect in case the autoReconnect feature is not +enabled.
cancelCommand sOnReconnectFailure
cancelCommandsOnReconnectFailure
false
timeoutOptions
Do n ot timeout commands.
Do not timeout commands.
Since: 5.1
@@ -550,7 +563,7 @@ client.setOptions(ClusterClientOptions.builder()en ablePeriodicRefresh
enablePeriodicRefresh
false
false
means the command will not be
+ * filtered out and will be replayed. Defaults to replaying all queued commands.
+ *
+ * @param replayFilter a {@link Predicate} to filter commands to replay. Must not be {@code null}.
+ * @see #DEFAULT_REPLAY_FILTER
+ * @return {@code this}
+ * @since 6.6
+ */
+ public Builder replayFilter(Predicatetrue
+ * if command should be filtered out and not replayed. Defaults to {@link #DEFAULT_REPLAY_FILTER}.
+ *
+ * @return the currently set {@link Predicate} used to filter out commands to replay
+ */
+ public Predicate