Skip to content

Deprecate GraphDatabase.routingDriver #1239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions driver/src/main/java/org/neo4j/driver/GraphDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@
*/
package org.neo4j.driver;

import static org.neo4j.driver.internal.Scheme.NEO4J_URI_SCHEME;

import java.net.URI;
import org.neo4j.driver.exceptions.ServiceUnavailableException;
import org.neo4j.driver.internal.DriverFactory;
import org.neo4j.driver.internal.SecuritySettings;
import org.neo4j.driver.internal.cluster.RoutingSettings;
import org.neo4j.driver.internal.retry.RetrySettings;
import org.neo4j.driver.internal.security.SecurityPlan;

import java.net.URI;

import static org.neo4j.driver.internal.Scheme.NEO4J_URI_SCHEME;

/**
* Creates {@link Driver drivers}, optionally letting you {@link #driver(URI, Config)} to configure them.
* @see Driver
Expand Down Expand Up @@ -141,7 +142,9 @@ static Driver driver(URI uri, AuthToken authToken, Config config, DriverFactory
* @param authToken authentication to use, see {@link AuthTokens}
* @param config user defined configuration
* @return a new driver instance
* @deprecated driver should be configured with initial address resolution as documented in the driver manual
*/
@Deprecated
public static Driver routingDriver(Iterable<URI> routingUris, AuthToken authToken, Config config) {
return routingDriver(routingUris, authToken, config, new DriverFactory());
}
Expand Down