[ 
https://issues.apache.org/jira/browse/CURATOR-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14638946#comment-14638946
 ] 

Jordan Zimmerman commented on CURATOR-239:
------------------------------------------

Damn - I can't edit. Here's a corrected version:

{code}
    RetryPolicy retryPolicy = new ExponentialBackoffRetry(100, 3000)
    {
        @Override
        public boolean allowRetry(int retryCount, long elapsedTimeMs, 
RetrySleeper sleeper)
        {
            super.allowRetry(retryCount, elapsedTimeMs, sleeper);
            return true;
        }
    };
{code}

> RetryPolicy that retries forever
> --------------------------------
>
>                 Key: CURATOR-239
>                 URL: https://issues.apache.org/jira/browse/CURATOR-239
>             Project: Apache Curator
>          Issue Type: Wish
>          Components: Client
>            Reporter: Leandro Nunes
>            Priority: Trivial
>
> I'd like to have a RetryPolicy that never ceases to retry. I find having to 
> come up with number for maxRetries a pain. I mean, I guess it makes sense to 
> have my clients repeatedly trying to connect to zookeeper on most cases. I 
> can be missing something though (this seems so obvious to me that I most 
> definitely am).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to