Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

Support a pluggable reconnect mechanism #9

Closed
mp911de opened this issue Sep 19, 2015 · 1 comment
Closed

Support a pluggable reconnect mechanism #9

mp911de opened this issue Sep 19, 2015 · 1 comment
Milestone

Comments

@mp911de
Copy link
Owner

mp911de commented Sep 19, 2015

If a client gets disconnected, disque servers are retried in a round-robin fashion. It would be helpful to choose from various connect/reconnect mechanisms (even for connecting to the first node, similar to Redis Sentinel). The HELLO command provides a list of nodes and priorities for instance.

mp911de added a commit that referenced this issue Oct 14, 2015
Expose RoundRobin connection mechanism and a factory for SocketAddressSupplier
mp911de added a commit that referenced this issue Oct 14, 2015
- Refactor circular iteration into RoundRobin class
- Introduce ConnectionAware and EventExecutorAware interfaces to inject resources into address suppliers
- Add HelloCluster address supplier that obtains its address based on the HELLO command

This commit is a pre-requisite for #8
@mp911de
Copy link
Owner Author

mp911de commented Oct 22, 2015

Implemented.

@mp911de mp911de closed this as completed Oct 22, 2015
@mp911de mp911de added this to the 0.3 milestone Feb 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant