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

Add factory for reconnection delay #250

Closed
mp911de opened this issue May 27, 2016 · 0 comments
Closed

Add factory for reconnection delay #250

mp911de opened this issue May 27, 2016 · 0 comments
Labels
type: enhancement A general enhancement
Milestone

Comments

@mp911de
Copy link
Collaborator

mp911de commented May 27, 2016

Lettuce reconnection delays implemented as binary exponential backoff (2^n where n is 1..13). Users should get more control over the reconnection delay by providing a Delay interface and Delay implementations. Provide the existing delay as ExponentialDelay implementation and provide additionally a ConstantDelay with upper and lower bounds.

Delays should be configured in ClientResources

@mp911de mp911de added the type: enhancement A general enhancement label May 27, 2016
mp911de added a commit that referenced this issue May 28, 2016
lettuce now supports configurable reconnection delays by introducing a Delay abstraction.  The Delay class abstracts with its implementation delay behavior in a reusable manner. Recoonection can be configured using either exponential or constant delays.
@mp911de mp911de added this to the Lettuce 4.2.0 milestone May 28, 2016
@mp911de mp911de closed this as completed May 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant