Class IdentityResolver

java.lang.Object
org.neo4j.driver.internal.cluster.IdentityResolver
All Implemented Interfaces:
ServerAddressResolver

public class IdentityResolver extends Object implements ServerAddressResolver
  • Field Details

  • Method Details

    • resolve

      public Set<ServerAddress> resolve(ServerAddress initialRouter)
      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 a LinkedHashSet 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 interface ServerAddressResolver
      Parameters:
      initialRouter - the address to resolve.
      Returns:
      new set of addresses.