java.lang.Object
org.neo4j.driver.internal.cluster.IdentityResolver
- All Implemented Interfaces:
ServerAddressResolver
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(ServerAddress initialRouter) Resolve the given address to a set of other addresses.
-
Field Details
-
IDENTITY_RESOLVER
-
-
Method Details
-
resolve
Description copied from interface:ServerAddressResolver
Resolve the given address to a set of other addresses. It is highly recommended to shuffle the addresses returned to prevent the driver from always retrying servers in a specific order. Considering returning aLinkedHashSet
to reserve the iteration order of a set. Exceptions thrown by this method will be logged and driver will continue using the original address.- Specified by:
resolve
in interfaceServerAddressResolver
- Parameters:
initialRouter
- the address to resolve.- Returns:
- new set of addresses.
-