Replies: 1 comment
-
Your statements: mostly correct, with refinements
What you're missing (important nuances)1. Timeout behavior
2. Execution context
3. Shutdown ordering
4. Refresh behavior
Do I need both? Which runs first?Recommendation: Use both, but with clear separation of concerns
Execution order (typical framework like Quarkus / Spring Boot with graceful shutdown enabled) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What exactly is the difference between @PreDestroy and GracefulShutdownCapable
From my understanding:
The differences I could spot are:
Are my statemes correct? Or am I missing something obvious?
Also, in case I want my beans to gracefully be shutdown and refreshed, do i need both @PreDestroy and GracefulllShutdownCapable?
And in that case, which one runs first?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions