xyuanlu commented on code in PR #2385:
URL: https://github.com/apache/helix/pull/2385#discussion_r1128257500
##########
meta-client/src/main/java/org/apache/helix/metaclient/factories/MetaClientConfig.java:
##########
@@ -123,6 +137,27 @@ public B setConnectionInitTimeoutInMillis(long timeout) {
return self();
}
+ /**
+ * Set timeout in ms for operation retry timeout
+ * @param timeout
+ * @return
+ */
+ public B setOperationRetryTimeoutInMillis(long timeout) {
+ _operationRetryTimeout = timeout;
+ return self();
+ }
+
+ /**
+ * Set reconnect policy when connection is lost or expired. By default is
+ * ExponentialBackoffReconnectPolicy
+ * @param reconnectPolicy an instance of type MetaClientReconnectPolicy
+ * @return
+ */
+ public B setMetaClientReconnectPolicy(MetaClientReconnectPolicy
reconnectPolicy) {
Review Comment:
If we want to assign at declaration time and user also set their own policy,
we will be creating an default policy object and then throw away.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]