Changes the busy-wait pattern from sleep to JVM hint, allowing the JVM to optimize processor usage.
Adds a shutdown hook to allow Spring to shutdown the Camel context if the application receives a termination signal.
What's new?
Replace Thread.wait() with Thread.onSpinWait()
Added application context shutdown hook
How should this be tested?
Run and stop the application. Should yield Camel shutdown messages in the log.
What does this Pull Request do?
Changes the busy-wait pattern from sleep to JVM hint, allowing the JVM to optimize processor usage. Adds a shutdown hook to allow Spring to shutdown the Camel context if the application receives a termination signal.
What's new?
How should this be tested?
Run and stop the application. Should yield Camel shutdown messages in the log.
Interested parties
@dbernstein