You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2024/05/23 08:58:16 UTC

(camel) 04/05: Disable busy-warning warning on shutdown strategy

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6939b4ed78736d4ae24867ec59edc83993c633e8
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Wed May 22 09:58:02 2024 +0200

    Disable busy-warning warning on shutdown strategy
---
 .../java/org/apache/camel/impl/engine/DefaultShutdownStrategy.java     | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultShutdownStrategy.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultShutdownStrategy.java
index d99a0bc1344..c22432843c0 100644
--- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultShutdownStrategy.java
+++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultShutdownStrategy.java
@@ -566,6 +566,9 @@ public class DefaultShutdownStrategy extends ServiceSupport implements ShutdownS
             this.logInflightExchangesOnTimeout = logInflightExchangesOnTimeout;
         }
 
+        // Disable BusyWait as we're only waiting on seconds increment, so any other
+        // strategy would not be much more efficient
+        @SuppressWarnings("BusyWait")
         @Override
         public void run() {
             // the strategy in this run method is to