This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push: new 379bac5efba CAMEL-20078: camel-jbang - Debug command 379bac5efba is described below commit 379bac5efba54ccf28db213fb4d98d6834a064de Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sat Nov 4 11:05:50 2023 +0100 CAMEL-20078: camel-jbang - Debug command --- core/camel-spring-boot/src/main/docs/spring-boot.json | 7 +++++++ .../spring/boot/debug/CamelDebugAutoConfiguration.java | 1 + .../boot/debug/CamelDebugConfigurationProperties.java | 15 +++++++++++++++ 3 files changed, 23 insertions(+) diff --git a/core/camel-spring-boot/src/main/docs/spring-boot.json b/core/camel-spring-boot/src/main/docs/spring-boot.json index 5410a9c3b5f..1fbf21109e4 100644 --- a/core/camel-spring-boot/src/main/docs/spring-boot.json +++ b/core/camel-spring-boot/src/main/docs/spring-boot.json @@ -460,6 +460,13 @@ "sourceType": "org.apache.camel.spring.boot.debug.CamelDebugConfigurationProperties", "defaultValue": false }, + { + "name": "camel.debug.fallback-timeout", + "type": "java.lang.Long", + "description": "Fallback Timeout in seconds (300 seconds as default) when block the message processing in Camel. A timeout used for waiting for a message to arrive at a given breakpoint.", + "sourceType": "org.apache.camel.spring.boot.debug.CamelDebugConfigurationProperties", + "defaultValue": 300 + }, { "name": "camel.debug.include-exception", "type": "java.lang.Boolean", diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugAutoConfiguration.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugAutoConfiguration.java index fae6522ae28..8873d8c1b5f 100644 --- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugAutoConfiguration.java +++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugAutoConfiguration.java @@ -55,6 +55,7 @@ public class CamelDebugAutoConfiguration { debugger.setIncludeException(config.isIncludeException()); debugger.setLoggingLevel(config.getLoggingLevel().name()); debugger.setSuspendMode(config.isWaitForAttach()); + debugger.setFallbackTimeout(config.getFallbackTimeout()); // start debugger after context is started camelContext.addLifecycleStrategy(new LifecycleStrategySupport() { diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugConfigurationProperties.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugConfigurationProperties.java index 1d8be772bcf..d3d445a55b7 100644 --- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugConfigurationProperties.java +++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugConfigurationProperties.java @@ -82,6 +82,13 @@ public class CamelDebugConfigurationProperties { */ private boolean includeException = true; + /** + * Fallback Timeout in seconds (300 seconds as default) when block the message processing in Camel. A timeout used + * for waiting for a message to arrive at a given breakpoint. + */ + @Metadata(label = "advanced", defaultValue = "300") + private long fallbackTimeout = 300; + public boolean isEnabled() { return enabled; } @@ -161,4 +168,12 @@ public class CamelDebugConfigurationProperties { public void setIncludeException(boolean includeException) { this.includeException = includeException; } + + public long getFallbackTimeout() { + return fallbackTimeout; + } + + public void setFallbackTimeout(long fallbackTimeout) { + this.fallbackTimeout = fallbackTimeout; + } }