Commit 6ae2022
Refactor EurekaServerInitializerConfiguration
Replace the raw 'new Thread' creation with
CompletableFuture.runAsync() to align with modern
Java concurrency practices.
Consolidate field injection and ServletContextAware
into a single constructor. Add the volatile keyword
to the 'running' flag to ensure thread visibility
across the container. Inject ApplicationEventPublisher
instead of the full ApplicationContext to improve
interface segregation.
Fixes gh-4570
Signed-off-by: Ali Ihsan TASDELEN <atasdelen@infodif.com>
Signed-off-by: Ali Ihsan TASDELEN <alihsan.tsdln@gmail.com>1 parent 9018406 commit 6ae2022
1 file changed
Lines changed: 5 additions & 5 deletions
File tree
- spring-cloud-netflix-eureka-server/src/main/java/org/springframework/cloud/netflix/eureka/server
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments