This is an automated email from the ASF dual-hosted git repository.
amagyar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git
The following commit(s) were added to refs/heads/master by this push:
new fc48add49 KNOX-2736 Knox clients should support retry/failover -
addendum (#578)
fc48add49 is described below
commit fc48add49a0c6015247b71ca118c90fb6dde347f
Author: Attila Magyar <[email protected]>
AuthorDate: Mon May 23 11:55:14 2022 +0200
KNOX-2736 Knox clients should support retry/failover - addendum (#578)
---
.../src/main/java/org/apache/knox/gateway/shell/ClientContext.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/gateway-shell/src/main/java/org/apache/knox/gateway/shell/ClientContext.java
b/gateway-shell/src/main/java/org/apache/knox/gateway/shell/ClientContext.java
index 84c5000e4..a9b057756 100644
---
a/gateway-shell/src/main/java/org/apache/knox/gateway/shell/ClientContext.java
+++
b/gateway-shell/src/main/java/org/apache/knox/gateway/shell/ClientContext.java
@@ -211,7 +211,7 @@ public class ClientContext {
/**
* true if it's OK to retry requests that have been sent
*/
- public ConnectionContext withRequestSentRetryEnabled(boolean
retryNonIdempotent) {
+ public ConnectionContext requestSentRetryEnabled(boolean
retryNonIdempotent) {
configuration.addProperty("requestSentRetryEnabled", retryNonIdempotent);
return this;
}
@@ -220,7 +220,7 @@ public class ClientContext {
return configuration.getBoolean("requestSentRetryEnabled", false);
}
- public ConnectionContext withRetryIntervalMillis(int msec) {
+ public ConnectionContext retryIntervalMillis(int msec) {
configuration.addProperty("retryIntervalMillis", msec);
return this;
}