Skip to content

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