diff --git a/driver/src/main/java/org/neo4j/driver/internal/cluster/Rediscovery.java b/driver/src/main/java/org/neo4j/driver/internal/cluster/Rediscovery.java index 5faea2186b..553efb7511 100644 --- a/driver/src/main/java/org/neo4j/driver/internal/cluster/Rediscovery.java +++ b/driver/src/main/java/org/neo4j/driver/internal/cluster/Rediscovery.java @@ -26,8 +26,21 @@ import org.neo4j.driver.internal.BoltServerAddress; import org.neo4j.driver.internal.spi.ConnectionPool; +/** + * Provides cluster composition lookup capabilities and initial router address resolution. + */ public interface Rediscovery { + /** + * Fetches cluster composition using the provided routing table. + *

+ * Implementation must be thread safe to be called with distinct routing tables concurrently. The routing table instance may be modified. + * + * @param routingTable the routing table for cluster composition lookup + * @param connectionPool the connection pool for connection acquisition + * @param bookmark the bookmark that is presented to the server + * @return cluster composition lookup result + */ CompletionStage lookupClusterComposition( RoutingTable routingTable, ConnectionPool connectionPool, Bookmark bookmark ); List resolve() throws UnknownHostException;