Skip to content
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

Add 2 access options to Config and refactor DriverFactory #1356

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

injectives
Copy link
Contributor

@injectives injectives commented Dec 15, 2022

This update adds 2 getters for existing configuration options in Config:

  • routingTablePurgeDelayMillis() - provides access to value configured via ConfigBuilder.withRoutingTablePurgeDelay(long, TimeUnit)
  • maxTransactionRetryTimeMillis() - provides access to value configured via ConfigBuilder.withMaxTransactionRetryTime(long, TimeUnit)

It also includes internal DriverFactory refactoring.

@injectives injectives marked this pull request as draft December 15, 2022 15:50
This update adds 2 getters for existing configuration options in `Config`:
- `routingTablePurgeDelayMillis()` - provides access to value configured via `ConfigBuilder.withRoutingTablePurgeDelay(long, TimeUnit)`
- `maxTransactionRetryTimeMillis()` - provides access to value configured via `ConfigBuilder.withMaxTransactionRetryTime(long, TimeUnit)`

It also includes internal `DriverFactory` refactoring.
@injectives injectives changed the title Update driver factory Add 2 access options to Config and refactor DriverFactory Dec 16, 2022
@injectives injectives marked this pull request as ready for review December 16, 2022 12:32
@injectives injectives requested review from gjmwoods, tobias-johansson and AndyHeap-NeoTech and removed request for gjmwoods December 16, 2022 12:34
SecuritySettings securitySettings = config.securitySettings();
SecurityPlan securityPlan = securitySettings.createSecurityPlan(uri.getScheme());
return driverFactory.newInstance(uri, authToken, routingSettings, retrySettings, config, securityPlan);
return driverFactory.newInstance(uri, authToken, config);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much nicer :)

Copy link

@tobias-johansson tobias-johansson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from the server perspective 👍

@injectives injectives merged commit a0f5b07 into neo4j:5.0 Dec 20, 2022
@injectives injectives deleted the feature/factory branch December 20, 2022 10:35
Copy link

@AndyHeap-NeoTech AndyHeap-NeoTech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It all makes sense to me. Approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants