We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3483c4e commit 546cef1Copy full SHA for 546cef1
driver/src/main/java/org/neo4j/driver/net/ServerAddressResolver.java
@@ -18,6 +18,7 @@
18
*/
19
package org.neo4j.driver.net;
20
21
+import java.util.LinkedHashSet;
22
import java.util.Set;
23
24
/**
@@ -28,6 +29,9 @@ public interface ServerAddressResolver
28
29
{
30
31
* Resolve the given address to a set of other addresses.
32
+ * It is highly recommended to shuffle the addresses returned to prevent the driver from
33
+ * always retrying servers in a specific order.
34
+ * Considering returning a {@link LinkedHashSet} to reserve the iteration order of a set.
35
* Exceptions thrown by this method will be logged and driver will continue using the original address.
36
*
37
* @param address the address to resolve.
0 commit comments