This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit ed8d1e06aa45be4144201c69a0df2bf05ea5b02d Author: Claus Ibsen <[email protected]> AuthorDate: Thu Feb 20 06:19:09 2020 +0100 CAMEL-6950: Regen --- .../org/apache/camel/component/sjms2/sjms2.json | 4 ++++ .../camel-sjms2/src/main/docs/sjms2-component.adoc | 8 +++++-- .../dsl/Sjms2ComponentBuilderFactory.java | 26 ++++++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) diff --git a/components/camel-sjms2/src/generated/resources/org/apache/camel/component/sjms2/sjms2.json b/components/camel-sjms2/src/generated/resources/org/apache/camel/component/sjms2/sjms2.json index 3e4cdf4..1e1849a 100644 --- a/components/camel-sjms2/src/generated/resources/org/apache/camel/component/sjms2/sjms2.json +++ b/components/camel-sjms2/src/generated/resources/org/apache/camel/component/sjms2/sjms2.json @@ -21,6 +21,8 @@ "componentProperties": { "connectionCount": { "kind": "property", "displayName": "Connection Count", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "secret": false, "defaultValue": "1", "description": "The maximum number of connections available to endpoints started under this component" }, "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by [...] + "reconnectBackOff": { "kind": "property", "displayName": "Reconnect Back Off", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "secret": false, "defaultValue": "5000", "description": "Backoff in millis on consumer pool reconnection attempts" }, + "reconnectOnError": { "kind": "property", "displayName": "Reconnect On Error", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "description": "Try to apply reconnection logic on consumer pool" }, "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the r [...] "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, "connectionClientId": { "kind": "property", "displayName": "Connection Client Id", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The client ID to use when creating javax.jms.Connection when using the default org.apache.camel.component.sjms.jms.ConnectionFactoryResource." }, @@ -45,6 +47,8 @@ "consumerCount": { "kind": "parameter", "displayName": "Consumer Count", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "secret": false, "defaultValue": "1", "description": "Sets the number of consumer listeners used for this endpoint." }, "durable": { "kind": "parameter", "displayName": "Durable", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets topic consumer to durable." }, "durableSubscriptionId": { "kind": "parameter", "displayName": "Durable Subscription Id", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Sets the durable subscription Id required for durable topics." }, + "reconnectBackOff": { "kind": "parameter", "displayName": "Reconnect Back Off", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "secret": false, "defaultValue": "5000", "description": "Backoff in millis on consumer pool reconnection attempts" }, + "reconnectOnError": { "kind": "parameter", "displayName": "Reconnect On Error", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "description": "Try to apply reconnection logic on consumer pool" }, "shared": { "kind": "parameter", "displayName": "Shared", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets the consumer to shared." }, "subscriptionId": { "kind": "parameter", "displayName": "Subscription Id", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Sets the subscription Id, required for durable or shared topics." }, "synchronous": { "kind": "parameter", "displayName": "Synchronous", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "description": "Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported)." }, diff --git a/components/camel-sjms2/src/main/docs/sjms2-component.adoc b/components/camel-sjms2/src/main/docs/sjms2-component.adoc index 9b17fe8..a7d15a9 100644 --- a/components/camel-sjms2/src/main/docs/sjms2-component.adoc +++ b/components/camel-sjms2/src/main/docs/sjms2-component.adoc @@ -88,7 +88,7 @@ You append query options to the URI using the following format, // component options: START -The Simple JMS2 component supports 17 options, which are listed below. +The Simple JMS2 component supports 19 options, which are listed below. @@ -97,6 +97,8 @@ The Simple JMS2 component supports 17 options, which are listed below. | Name | Description | Default | Type | *connectionCount* (common) | The maximum number of connections available to endpoints started under this component | 1 | Integer | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean +| *reconnectBackOff* (consumer) | Backoff in millis on consumer pool reconnection attempts | 5000 | long +| *reconnectOnError* (consumer) | Try to apply reconnection logic on consumer pool | true | boolean | *lazyStartProducer* (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...] | *basicPropertyBinding* (advanced) | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *connectionClientId* (advanced) | The client ID to use when creating javax.jms.Connection when using the default org.apache.camel.component.sjms.jms.ConnectionFactoryResource. | | String @@ -142,7 +144,7 @@ with the following path and query parameters: |=== -=== Query Parameters (39 parameters): +=== Query Parameters (41 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -153,6 +155,8 @@ with the following path and query parameters: | *consumerCount* (consumer) | Sets the number of consumer listeners used for this endpoint. | 1 | int | *durable* (consumer) | Sets topic consumer to durable. | false | boolean | *durableSubscriptionId* (consumer) | Sets the durable subscription Id required for durable topics. | | String +| *reconnectBackOff* (consumer) | Backoff in millis on consumer pool reconnection attempts | 5000 | long +| *reconnectOnError* (consumer) | Try to apply reconnection logic on consumer pool | true | boolean | *shared* (consumer) | Sets the consumer to shared. | false | boolean | *subscriptionId* (consumer) | Sets the subscription Id, required for durable or shared topics. | | String | *synchronous* (consumer) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | true | boolean diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Sjms2ComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Sjms2ComponentBuilderFactory.java index c5a8053..df3ff07 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Sjms2ComponentBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Sjms2ComponentBuilderFactory.java @@ -82,6 +82,30 @@ public interface Sjms2ComponentBuilderFactory { return this; } /** + * Backoff in millis on consumer pool reconnection attempts. + * + * The option is a: <code>long</code> type. + * + * Default: 5000 + * Group: consumer + */ + default Sjms2ComponentBuilder reconnectBackOff(long reconnectBackOff) { + doSetProperty("reconnectBackOff", reconnectBackOff); + return this; + } + /** + * Try to apply reconnection logic on consumer pool. + * + * The option is a: <code>boolean</code> type. + * + * Default: true + * Group: consumer + */ + default Sjms2ComponentBuilder reconnectOnError(boolean reconnectOnError) { + doSetProperty("reconnectOnError", reconnectOnError); + return this; + } + /** * Whether the producer should be started lazy (on the first message). * By starting lazy you can use this to allow CamelContext and routes to * startup in situations where a producer may otherwise fail during @@ -326,6 +350,8 @@ public interface Sjms2ComponentBuilderFactory { switch (name) { case "connectionCount": ((Sjms2Component) component).setConnectionCount((java.lang.Integer) value); return true; case "bridgeErrorHandler": ((Sjms2Component) component).setBridgeErrorHandler((boolean) value); return true; + case "reconnectBackOff": ((Sjms2Component) component).setReconnectBackOff((long) value); return true; + case "reconnectOnError": ((Sjms2Component) component).setReconnectOnError((boolean) value); return true; case "lazyStartProducer": ((Sjms2Component) component).setLazyStartProducer((boolean) value); return true; case "basicPropertyBinding": ((Sjms2Component) component).setBasicPropertyBinding((boolean) value); return true; case "connectionClientId": ((Sjms2Component) component).setConnectionClientId((java.lang.String) value); return true;
