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.git
The following commit(s) were added to refs/heads/main by this push:
new 014d30e064d CAMEL-22438: camel-catalog - Enum should be type: enum in
catalog metadata
014d30e064d is described below
commit 014d30e064dd9beefad4bb9a19bf9248eec02015
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Sep 23 15:27:02 2025 +0200
CAMEL-22438: camel-catalog - Enum should be type: enum in catalog metadata
---
.../camel/catalog/components/azure-servicebus.json | 4 ++--
.../servicebus/ServiceBusComponentConfigurer.java | 4 ++--
.../servicebus/ServiceBusEndpointConfigurer.java | 4 ++--
.../component/azure/servicebus/azure-servicebus.json | 4 ++--
.../azure/servicebus/ServiceBusConfiguration.java | 13 ++++++-------
.../servicebus/client/ServiceBusClientFactory.java | 5 +++--
.../dsl/AzureServicebusComponentBuilderFactory.java | 12 ++++++------
.../dsl/ServiceBusEndpointBuilderFactory.java | 19 +++++++++----------
8 files changed, 32 insertions(+), 33 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-servicebus.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-servicebus.json
index 68b4734d59c..ebe2d7821bb 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-servicebus.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-servicebus.json
@@ -33,7 +33,7 @@
"serviceBusType": { "index": 6, "kind": "property", "displayName":
"Service Bus Type", "group": "common", "label": "common", "required": true,
"type": "enum", "javaType":
"org.apache.camel.component.azure.servicebus.ServiceBusType", "enum": [
"queue", "topic" ], "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": "queue", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "con [...]
"bridgeErrorHandler": { "index": 7, "kind": "property", "displayName":
"Bridge Error Handler", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Allows for bridging the consumer to the Camel routing Error Handler, which
mean any exceptions (if possible) occurred while the Camel consumer is trying
to pickup incoming messages, or the like [...]
"enableDeadLettering": { "index": 8, "kind": "property", "displayName":
"Enable Dead Lettering", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Enable application level
deadlettering to the subscription [...]
- "maxAutoLockRenewDuration": { "index": 9, "kind": "property",
"displayName": "Max Auto Lock Renew Duration", "group": "consumer", "label":
"consumer", "required": false, "type": "duration", "javaType":
"java.time.Duration", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "5m", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the amount of time
to continue [...]
+ "maxAutoLockRenewDuration": { "index": 9, "kind": "property",
"displayName": "Max Auto Lock Renew Duration", "group": "consumer", "label":
"consumer", "required": false, "type": "duration", "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"300000", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the amount of time
(millis) to continue a [...]
"maxConcurrentCalls": { "index": 10, "kind": "property", "displayName":
"Max Concurrent Calls", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets maximum number of
concurrent calls" },
"prefetchCount": { "index": 11, "kind": "property", "displayName":
"Prefetch Count", "group": "consumer", "label": "consumer", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the prefetch count
of the receiver. For both PEEK_LOCK PEEK_LOCK and RECEIVE_AND_DELETE RECEI [...]
"processorClient": { "index": 12, "kind": "property", "displayName":
"Processor Client", "group": "consumer", "label": "consumer", "required":
false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusProcessorClient", "deprecated":
false, "deprecationNote": "", "autowired": true, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the processorCl
[...]
@@ -90,7 +90,7 @@
"proxyOptions": { "index": 5, "kind": "parameter", "displayName": "Proxy
Options", "group": "common", "label": "common", "required": false, "type":
"object", "javaType": "com.azure.core.amqp.ProxyOptions", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the proxy
configuration to use for ServiceBusSenderClient. When a proxy [...]
"serviceBusType": { "index": 6, "kind": "parameter", "displayName":
"Service Bus Type", "group": "common", "label": "common", "required": true,
"type": "enum", "javaType":
"org.apache.camel.component.azure.servicebus.ServiceBusType", "enum": [
"queue", "topic" ], "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": "queue", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "co [...]
"enableDeadLettering": { "index": 7, "kind": "parameter", "displayName":
"Enable Dead Lettering", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Enable application level
deadlettering to the subscription [...]
- "maxAutoLockRenewDuration": { "index": 8, "kind": "parameter",
"displayName": "Max Auto Lock Renew Duration", "group": "consumer", "label":
"consumer", "required": false, "type": "duration", "javaType":
"java.time.Duration", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "5m", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the amount of time
to continue [...]
+ "maxAutoLockRenewDuration": { "index": 8, "kind": "parameter",
"displayName": "Max Auto Lock Renew Duration", "group": "consumer", "label":
"consumer", "required": false, "type": "duration", "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"300000", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the amount of time
(millis) to continue [...]
"maxConcurrentCalls": { "index": 9, "kind": "parameter", "displayName":
"Max Concurrent Calls", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets maximum number of
concurrent calls" },
"prefetchCount": { "index": 10, "kind": "parameter", "displayName":
"Prefetch Count", "group": "consumer", "label": "consumer", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the prefetch count
of the receiver. For both PEEK_LOCK PEEK_LOCK and RECEIVE_AND_DELETE RECE [...]
"processorClient": { "index": 11, "kind": "parameter", "displayName":
"Processor Client", "group": "consumer", "label": "consumer", "required":
false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusProcessorClient", "deprecated":
false, "deprecationNote": "", "autowired": true, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the processorC [...]
diff --git
a/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusComponentConfigurer.java
b/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusComponentConfigurer.java
index bbd3077ff25..13d1133cd84 100644
---
a/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusComponentConfigurer.java
+++
b/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusComponentConfigurer.java
@@ -55,7 +55,7 @@ public class ServiceBusComponentConfigurer extends
PropertyConfigurerSupport imp
case "lazystartproducer":
case "lazyStartProducer":
target.setLazyStartProducer(property(camelContext, boolean.class, value));
return true;
case "maxautolockrenewduration":
- case "maxAutoLockRenewDuration":
getOrCreateConfiguration(target).setMaxAutoLockRenewDuration(property(camelContext,
java.time.Duration.class, value)); return true;
+ case "maxAutoLockRenewDuration":
getOrCreateConfiguration(target).setMaxAutoLockRenewDuration(property(camelContext,
java.time.Duration.class, value).toMillis()); return true;
case "maxconcurrentcalls":
case "maxConcurrentCalls":
getOrCreateConfiguration(target).setMaxConcurrentCalls(property(camelContext,
int.class, value)); return true;
case "prefetchcount":
@@ -123,7 +123,7 @@ public class ServiceBusComponentConfigurer extends
PropertyConfigurerSupport imp
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "maxautolockrenewduration":
- case "maxAutoLockRenewDuration": return java.time.Duration.class;
+ case "maxAutoLockRenewDuration": return long.class;
case "maxconcurrentcalls":
case "maxConcurrentCalls": return int.class;
case "prefetchcount":
diff --git
a/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointConfigurer.java
b/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointConfigurer.java
index 469ff07db87..6c0389e28fd 100644
---
a/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointConfigurer.java
+++
b/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointConfigurer.java
@@ -49,7 +49,7 @@ public class ServiceBusEndpointConfigurer extends
PropertyConfigurerSupport impl
case "lazystartproducer":
case "lazyStartProducer":
target.setLazyStartProducer(property(camelContext, boolean.class, value));
return true;
case "maxautolockrenewduration":
- case "maxAutoLockRenewDuration":
target.getConfiguration().setMaxAutoLockRenewDuration(property(camelContext,
java.time.Duration.class, value)); return true;
+ case "maxAutoLockRenewDuration":
target.getConfiguration().setMaxAutoLockRenewDuration(property(camelContext,
java.time.Duration.class, value).toMillis()); return true;
case "maxconcurrentcalls":
case "maxConcurrentCalls":
target.getConfiguration().setMaxConcurrentCalls(property(camelContext,
int.class, value)); return true;
case "prefetchcount":
@@ -118,7 +118,7 @@ public class ServiceBusEndpointConfigurer extends
PropertyConfigurerSupport impl
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "maxautolockrenewduration":
- case "maxAutoLockRenewDuration": return java.time.Duration.class;
+ case "maxAutoLockRenewDuration": return long.class;
case "maxconcurrentcalls":
case "maxConcurrentCalls": return int.class;
case "prefetchcount":
diff --git
a/components/camel-azure/camel-azure-servicebus/src/generated/resources/META-INF/org/apache/camel/component/azure/servicebus/azure-servicebus.json
b/components/camel-azure/camel-azure-servicebus/src/generated/resources/META-INF/org/apache/camel/component/azure/servicebus/azure-servicebus.json
index 68b4734d59c..ebe2d7821bb 100644
---
a/components/camel-azure/camel-azure-servicebus/src/generated/resources/META-INF/org/apache/camel/component/azure/servicebus/azure-servicebus.json
+++
b/components/camel-azure/camel-azure-servicebus/src/generated/resources/META-INF/org/apache/camel/component/azure/servicebus/azure-servicebus.json
@@ -33,7 +33,7 @@
"serviceBusType": { "index": 6, "kind": "property", "displayName":
"Service Bus Type", "group": "common", "label": "common", "required": true,
"type": "enum", "javaType":
"org.apache.camel.component.azure.servicebus.ServiceBusType", "enum": [
"queue", "topic" ], "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": "queue", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "con [...]
"bridgeErrorHandler": { "index": 7, "kind": "property", "displayName":
"Bridge Error Handler", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Allows for bridging the consumer to the Camel routing Error Handler, which
mean any exceptions (if possible) occurred while the Camel consumer is trying
to pickup incoming messages, or the like [...]
"enableDeadLettering": { "index": 8, "kind": "property", "displayName":
"Enable Dead Lettering", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Enable application level
deadlettering to the subscription [...]
- "maxAutoLockRenewDuration": { "index": 9, "kind": "property",
"displayName": "Max Auto Lock Renew Duration", "group": "consumer", "label":
"consumer", "required": false, "type": "duration", "javaType":
"java.time.Duration", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "5m", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the amount of time
to continue [...]
+ "maxAutoLockRenewDuration": { "index": 9, "kind": "property",
"displayName": "Max Auto Lock Renew Duration", "group": "consumer", "label":
"consumer", "required": false, "type": "duration", "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"300000", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the amount of time
(millis) to continue a [...]
"maxConcurrentCalls": { "index": 10, "kind": "property", "displayName":
"Max Concurrent Calls", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets maximum number of
concurrent calls" },
"prefetchCount": { "index": 11, "kind": "property", "displayName":
"Prefetch Count", "group": "consumer", "label": "consumer", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the prefetch count
of the receiver. For both PEEK_LOCK PEEK_LOCK and RECEIVE_AND_DELETE RECEI [...]
"processorClient": { "index": 12, "kind": "property", "displayName":
"Processor Client", "group": "consumer", "label": "consumer", "required":
false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusProcessorClient", "deprecated":
false, "deprecationNote": "", "autowired": true, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the processorCl
[...]
@@ -90,7 +90,7 @@
"proxyOptions": { "index": 5, "kind": "parameter", "displayName": "Proxy
Options", "group": "common", "label": "common", "required": false, "type":
"object", "javaType": "com.azure.core.amqp.ProxyOptions", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the proxy
configuration to use for ServiceBusSenderClient. When a proxy [...]
"serviceBusType": { "index": 6, "kind": "parameter", "displayName":
"Service Bus Type", "group": "common", "label": "common", "required": true,
"type": "enum", "javaType":
"org.apache.camel.component.azure.servicebus.ServiceBusType", "enum": [
"queue", "topic" ], "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": "queue", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "co [...]
"enableDeadLettering": { "index": 7, "kind": "parameter", "displayName":
"Enable Dead Lettering", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Enable application level
deadlettering to the subscription [...]
- "maxAutoLockRenewDuration": { "index": 8, "kind": "parameter",
"displayName": "Max Auto Lock Renew Duration", "group": "consumer", "label":
"consumer", "required": false, "type": "duration", "javaType":
"java.time.Duration", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "5m", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the amount of time
to continue [...]
+ "maxAutoLockRenewDuration": { "index": 8, "kind": "parameter",
"displayName": "Max Auto Lock Renew Duration", "group": "consumer", "label":
"consumer", "required": false, "type": "duration", "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"300000", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the amount of time
(millis) to continue [...]
"maxConcurrentCalls": { "index": 9, "kind": "parameter", "displayName":
"Max Concurrent Calls", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets maximum number of
concurrent calls" },
"prefetchCount": { "index": 10, "kind": "parameter", "displayName":
"Prefetch Count", "group": "consumer", "label": "consumer", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the prefetch count
of the receiver. For both PEEK_LOCK PEEK_LOCK and RECEIVE_AND_DELETE RECE [...]
"processorClient": { "index": 11, "kind": "parameter", "displayName":
"Processor Client", "group": "consumer", "label": "consumer", "required":
false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusProcessorClient", "deprecated":
false, "deprecationNote": "", "autowired": true, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the processorC [...]
diff --git
a/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/ServiceBusConfiguration.java
b/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/ServiceBusConfiguration.java
index b1b41141d5b..399f81ed5d1 100644
---
a/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/ServiceBusConfiguration.java
+++
b/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/ServiceBusConfiguration.java
@@ -16,7 +16,6 @@
*/
package org.apache.camel.component.azure.servicebus;
-import java.time.Duration;
import java.time.OffsetDateTime;
import com.azure.core.amqp.AmqpRetryOptions;
@@ -67,8 +66,8 @@ public class ServiceBusConfiguration implements Cloneable,
HeaderFilterStrategyA
private boolean enableDeadLettering;
@UriParam(label = "consumer", defaultValue = "PEEK_LOCK")
private ServiceBusReceiveMode serviceBusReceiveMode =
ServiceBusReceiveMode.PEEK_LOCK;
- @UriParam(label = "consumer", defaultValue = "5m")
- private Duration maxAutoLockRenewDuration = Duration.ofMinutes(5);
+ @UriParam(label = "consumer", defaultValue = "300000", javaType =
"java.time.Duration")
+ private long maxAutoLockRenewDuration = 300000L;
@UriParam(label = "consumer")
private int prefetchCount;
@UriParam(label = "consumer")
@@ -256,14 +255,14 @@ public class ServiceBusConfiguration implements
Cloneable, HeaderFilterStrategyA
}
/**
- * Sets the amount of time to continue auto-renewing the lock. Setting
ZERO disables auto-renewal. For ServiceBus
- * receive mode (RECEIVE_AND_DELETE RECEIVE_AND_DELETE), auto-renewal is
disabled.
+ * Sets the amount of time (millis) to continue auto-renewing the lock.
Setting ZERO disables auto-renewal. For
+ * ServiceBus receive mode (RECEIVE_AND_DELETE RECEIVE_AND_DELETE),
auto-renewal is disabled.
*/
- public Duration getMaxAutoLockRenewDuration() {
+ public long getMaxAutoLockRenewDuration() {
return maxAutoLockRenewDuration;
}
- public void setMaxAutoLockRenewDuration(Duration maxAutoLockRenewDuration)
{
+ public void setMaxAutoLockRenewDuration(long maxAutoLockRenewDuration) {
this.maxAutoLockRenewDuration = maxAutoLockRenewDuration;
}
diff --git
a/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/client/ServiceBusClientFactory.java
b/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/client/ServiceBusClientFactory.java
index aed3c0c603c..84070214d6c 100644
---
a/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/client/ServiceBusClientFactory.java
+++
b/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/client/ServiceBusClientFactory.java
@@ -16,6 +16,7 @@
*/
package org.apache.camel.component.azure.servicebus.client;
+import java.time.Duration;
import java.util.function.Consumer;
import com.azure.core.credential.TokenCredential;
@@ -110,7 +111,7 @@ public final class ServiceBusClientFactory {
clientBuilder
.subscriptionName(configuration.getSubscriptionName())
.receiveMode(configuration.getServiceBusReceiveMode())
-
.maxAutoLockRenewDuration(configuration.getMaxAutoLockRenewDuration())
+
.maxAutoLockRenewDuration(Duration.ofMillis(configuration.getMaxAutoLockRenewDuration()))
.prefetchCount(configuration.getPrefetchCount())
.subQueue(configuration.getSubQueue())
.maxConcurrentCalls(configuration.getMaxConcurrentCalls())
@@ -130,7 +131,7 @@ public final class ServiceBusClientFactory {
clientBuilder
.subscriptionName(configuration.getSubscriptionName())
.receiveMode(configuration.getServiceBusReceiveMode())
-
.maxAutoLockRenewDuration(configuration.getMaxAutoLockRenewDuration())
+
.maxAutoLockRenewDuration(Duration.ofMillis(configuration.getMaxAutoLockRenewDuration()))
.prefetchCount(configuration.getPrefetchCount())
.subQueue(configuration.getSubQueue())
.maxConcurrentCalls(configuration.getMaxConcurrentCalls())
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureServicebusComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureServicebusComponentBuilderFactory.java
index 6ef5386b0d2..e14697d1ddd 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureServicebusComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureServicebusComponentBuilderFactory.java
@@ -223,19 +223,19 @@ public interface AzureServicebusComponentBuilderFactory {
/**
- * Sets the amount of time to continue auto-renewing the lock. Setting
- * ZERO disables auto-renewal. For ServiceBus receive mode
+ * Sets the amount of time (millis) to continue auto-renewing the lock.
+ * Setting ZERO disables auto-renewal. For ServiceBus receive mode
* (RECEIVE_AND_DELETE RECEIVE_AND_DELETE), auto-renewal is disabled.
*
- * The option is a: <code>java.time.Duration</code> type.
+ * The option is a: <code>long</code> type.
*
- * Default: 5m
+ * Default: 300000
* Group: consumer
*
* @param maxAutoLockRenewDuration the value to set
* @return the dsl builder
*/
- default AzureServicebusComponentBuilder
maxAutoLockRenewDuration(java.time.Duration maxAutoLockRenewDuration) {
+ default AzureServicebusComponentBuilder maxAutoLockRenewDuration(long
maxAutoLockRenewDuration) {
doSetProperty("maxAutoLockRenewDuration",
maxAutoLockRenewDuration);
return this;
}
@@ -607,7 +607,7 @@ public interface AzureServicebusComponentBuilderFactory {
case "serviceBusType":
getOrCreateConfiguration((ServiceBusComponent)
component).setServiceBusType((org.apache.camel.component.azure.servicebus.ServiceBusType)
value); return true;
case "bridgeErrorHandler": ((ServiceBusComponent)
component).setBridgeErrorHandler((boolean) value); return true;
case "enableDeadLettering":
getOrCreateConfiguration((ServiceBusComponent)
component).setEnableDeadLettering((boolean) value); return true;
- case "maxAutoLockRenewDuration":
getOrCreateConfiguration((ServiceBusComponent)
component).setMaxAutoLockRenewDuration((java.time.Duration) value); return true;
+ case "maxAutoLockRenewDuration":
getOrCreateConfiguration((ServiceBusComponent)
component).setMaxAutoLockRenewDuration((long) value); return true;
case "maxConcurrentCalls":
getOrCreateConfiguration((ServiceBusComponent)
component).setMaxConcurrentCalls((int) value); return true;
case "prefetchCount":
getOrCreateConfiguration((ServiceBusComponent)
component).setPrefetchCount((int) value); return true;
case "processorClient":
getOrCreateConfiguration((ServiceBusComponent)
component).setProcessorClient((com.azure.messaging.servicebus.ServiceBusProcessorClient)
value); return true;
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServiceBusEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServiceBusEndpointBuilderFactory.java
index 102a793c662..f3ac265a093 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServiceBusEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServiceBusEndpointBuilderFactory.java
@@ -276,31 +276,30 @@ public interface ServiceBusEndpointBuilderFactory {
return this;
}
/**
- * Sets the amount of time to continue auto-renewing the lock. Setting
- * ZERO disables auto-renewal. For ServiceBus receive mode
+ * Sets the amount of time (millis) to continue auto-renewing the lock.
+ * Setting ZERO disables auto-renewal. For ServiceBus receive mode
* (RECEIVE_AND_DELETE RECEIVE_AND_DELETE), auto-renewal is disabled.
*
- * The option is a: <code>java.time.Duration</code> type.
+ * The option is a: <code>long</code> type.
*
- * Default: 5m
+ * Default: 300000
* Group: consumer
*
* @param maxAutoLockRenewDuration the value to set
* @return the dsl builder
*/
- default ServiceBusEndpointConsumerBuilder
maxAutoLockRenewDuration(java.time.Duration maxAutoLockRenewDuration) {
+ default ServiceBusEndpointConsumerBuilder
maxAutoLockRenewDuration(long maxAutoLockRenewDuration) {
doSetProperty("maxAutoLockRenewDuration",
maxAutoLockRenewDuration);
return this;
}
/**
- * Sets the amount of time to continue auto-renewing the lock. Setting
- * ZERO disables auto-renewal. For ServiceBus receive mode
+ * Sets the amount of time (millis) to continue auto-renewing the lock.
+ * Setting ZERO disables auto-renewal. For ServiceBus receive mode
* (RECEIVE_AND_DELETE RECEIVE_AND_DELETE), auto-renewal is disabled.
*
- * The option will be converted to a <code>java.time.Duration</code>
- * type.
+ * The option will be converted to a <code>long</code> type.
*
- * Default: 5m
+ * Default: 300000
* Group: consumer
*
* @param maxAutoLockRenewDuration the value to set