Commit cd7a71d
authored
Daemonize event loop threads. (#922)
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.1 parent 675ac10 commit cd7a71d
File tree
1 file changed
+2
-1
lines changed- driver/src/main/java/org/neo4j/driver/internal/async/connection
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
0 commit comments