Skip to content

Daemonize event loop threads. #922

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 1 commit into from
Jun 14, 2021

Conversation

michael-simons
Copy link
Contributor

This instructs the EventLoopGroupFactory to daemonize newly created
event loop group threads as per Netty's DefaultThreadFactory. This
allows applications to shutdown when the last user thread ends, without
explicitly calling close to the Neo4j driver instance, which is in
line with other database drivers such as Postgres JDBC or MySQL JDBC.

In addition, this might become relevant with Netty 5 at some point in
the future, too. See: netty/netty#2832.

This instructs the `EventLoopGroupFactory` to daemonize newly created
event loop group threads as per Netty's `DefaultThreadFactory`. This
allows applications to shutdown when the last user thread ends, without
explicitly calling `close` to the Neo4j driver instance, which is in
line with other database drivers such as Postgres JDBC or MySQL JDBC.

In addition, this might become relevant with Netty 5 at some point in
the future, too. See: netty/netty#2832.
@michael-simons michael-simons merged commit cd7a71d into neo4j:4.1 Jun 14, 2021
@michael-simons michael-simons deleted the issue/4.1-daemon-threads branch June 14, 2021 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant