Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using RetryListener, do I have to trigger the retry-predicate ? #56

Open
elad2109 opened this issue Feb 27, 2016 · 0 comments
Open

using RetryListener, do I have to trigger the retry-predicate ? #56

elad2109 opened this issue Feb 27, 2016 · 0 comments

Comments

@elad2109
Copy link

I create a retryer using RetryBuild.
I pass it a shouldRetry() predicate.
I pass it a retryListener

what si the flow?
an onRetry event is triggered to the listener ---> then the predicate is called without the need of the listener to call it(?) ---> if returns "true" the calleable is called again

Or
the predicate is called without the need of the listener to call it(?) ---> if returns "true" the calleable is called again ---> an onRetry event is triggered to the listener

Or

an onRetry event is triggered to the listener, in the onRetry body I have to call explicitly to the retry pre-defined predicate ---> then the predicate is called ---> if returns "true" the calleable is called again

Thanks for clarifying

@elad2109 elad2109 changed the title using RetryListener, do I have to trigger the retry even though I set a retry predicator in the retryBuilder? using RetryListener, do I have to trigger the retry-predicate ? Feb 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant