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 eff6fde into neo4j:4.3 Jun 14, 2021
@michael-simons michael-simons deleted the issue/daemonize-eventloop-threads branch June 14, 2021 12:32
michael-simons added a commit to michael-simons/neo4j-java-driver that referenced this pull request Jun 14, 2021
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 added a commit to michael-simons/neo4j-java-driver that referenced this pull request Jun 14, 2021
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 added a commit to michael-simons/neo4j-java-driver that referenced this pull request Jun 14, 2021
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 added a commit to michael-simons/neo4j-java-driver that referenced this pull request Jun 14, 2021
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.
fbiville added a commit to neo4j/neo4j-jdbc that referenced this pull request Sep 13, 2021
The recent Java driver configures Netty so that it spawns deamon
threads for its event loops and therefore does not block
application when they shut down. This is especially useful for
CLI applications using the JDBC driver.

See neo4j/neo4j-java-driver#918 for more
context.
fbiville added a commit to neo4j/neo4j-jdbc that referenced this pull request Sep 13, 2021
The recent Java driver configures Netty so that it spawns deamon
threads for its event loops and therefore does not block
application when they shut down. This is especially useful for
CLI applications using the JDBC driver.

See neo4j/neo4j-java-driver#918 for more
context.
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.

2 participants