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

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

{code}
    RetryPolicy retryForeverPolicy = new RetryPolicy()
    {
        @Override
        public boolean allowRetry(int retryCount, long elapsedTimeMs, 
RetrySleeper 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