This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/master by this push:
new 5ac4664 [create-pull-request] automated change
5ac4664 is described below
commit 5ac46643a40fdbed5641e20efeee3ce2038f21fb
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Mar 15 00:52:49 2021 +0000
[create-pull-request] automated change
---
.../org/apache/camel/springboot/catalog/components/aws2-sqs.json | 4 ++--
.../camel-aws2-sqs-starter/src/main/docs/aws2-sqs-starter.adoc | 2 +-
.../component/aws2/sqs/springboot/Sqs2ComponentConfiguration.java | 5 +++++
docs/modules/ROOT/pages/aws2-sqs-starter.adoc | 2 +-
4 files changed, 9 insertions(+), 4 deletions(-)
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-sqs.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-sqs.json
index d0534e7..4450e0e 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-sqs.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-sqs.json
@@ -39,7 +39,7 @@
"concurrentConsumers": { "kind": "property", "displayName": "Concurrent
Consumers", "group": "consumer", "label": "consumer", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "Allows you to use multiple threads to poll the
sqs queue to increase throughput" },
"defaultVisibilityTimeout": { "kind": "property", "displayName": "Default
Visibility Timeout", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "The default visibility timeout (in seconds)" },
"deleteAfterRead": { "kind": "property", "displayName": "Delete After
Read", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "Delete message from SQS after it has been
read" },
- "deleteIfFiltered": { "kind": "property", "displayName": "Delete If
Filtered", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "Whether or not to send the DeleteMessage to
the SQS queue if an exchange fails to get throug [...]
+ "deleteIfFiltered": { "kind": "property", "displayName": "Delete If
Filtered", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": true, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "Whether or not to send the DeleteMessage to
the SQS queue if an exchange fails to get through [...]
"extendMessageVisibility": { "kind": "property", "displayName": "Extend
Message Visibility", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.aws2.sqs.Sqs2Configuration",
"configurationField": "configuration", "description": "If enabled then a
scheduled background task will keep extending the message v [...]
"kmsDataKeyReusePeriodSeconds": { "kind": "property", "displayName": "Kms
Data Key Reuse Period Seconds", "group": "consumer", "label": "consumer",
"required": false, "type": "integer", "javaType": "java.lang.Integer",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "The length of time, in seconds, for which
Amazon SQS can reuse a data key to [...]
"kmsMasterKeyId": { "kind": "property", "displayName": "Kms Master Key
Id", "group": "consumer", "label": "consumer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "The ID of an AWS-managed customer master key
(CMK) for Amazon SQS or a custom CMK." },
@@ -85,7 +85,7 @@
"concurrentConsumers": { "kind": "parameter", "displayName": "Concurrent
Consumers", "group": "consumer", "label": "consumer", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "Allows you to use multiple threads to poll the
sqs queue to increase throughput" },
"defaultVisibilityTimeout": { "kind": "parameter", "displayName": "Default
Visibility Timeout", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "The default visibility timeout (in seconds)" },
"deleteAfterRead": { "kind": "parameter", "displayName": "Delete After
Read", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "Delete message from SQS after it has been
read" },
- "deleteIfFiltered": { "kind": "parameter", "displayName": "Delete If
Filtered", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "Whether or not to send the DeleteMessage to
the SQS queue if an exchange fails to get throu [...]
+ "deleteIfFiltered": { "kind": "parameter", "displayName": "Delete If
Filtered", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": true, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "Whether or not to send the DeleteMessage to
the SQS queue if an exchange fails to get throug [...]
"extendMessageVisibility": { "kind": "parameter", "displayName": "Extend
Message Visibility", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.aws2.sqs.Sqs2Configuration",
"configurationField": "configuration", "description": "If enabled then a
scheduled background task will keep extending the message [...]
"kmsDataKeyReusePeriodSeconds": { "kind": "parameter", "displayName": "Kms
Data Key Reuse Period Seconds", "group": "consumer", "label": "consumer",
"required": false, "type": "integer", "javaType": "java.lang.Integer",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "The length of time, in seconds, for which
Amazon SQS can reuse a data key to [...]
"kmsMasterKeyId": { "kind": "parameter", "displayName": "Kms Master Key
Id", "group": "consumer", "label": "consumer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField":
"configuration", "description": "The ID of an AWS-managed customer master key
(CMK) for Amazon SQS or a custom CMK." },
diff --git
a/components-starter/camel-aws2-sqs-starter/src/main/docs/aws2-sqs-starter.adoc
b/components-starter/camel-aws2-sqs-starter/src/main/docs/aws2-sqs-starter.adoc
index e67a046..4e6cdd3 100644
---
a/components-starter/camel-aws2-sqs-starter/src/main/docs/aws2-sqs-starter.adoc
+++
b/components-starter/camel-aws2-sqs-starter/src/main/docs/aws2-sqs-starter.adoc
@@ -38,7 +38,6 @@ The component supports 44 options, which are listed below.
| *camel.component.aws2-sqs.delay-queue* | Define if you want to apply
delaySeconds option to the queue or on single messages | false | Boolean
| *camel.component.aws2-sqs.delay-seconds* | Delay sending messages for a
number of seconds. | | Integer
| *camel.component.aws2-sqs.delete-after-read* | Delete message from SQS after
it has been read | true | Boolean
-| *camel.component.aws2-sqs.delete-if-filtered* | Whether or not to send the
DeleteMessage to the SQS queue if an exchange fails to get through a filter. If
'false' and exchange does not make it through a Camel filter upstream in the
route, then don't send DeleteMessage. | true | Boolean
| *camel.component.aws2-sqs.enabled* | Whether to enable auto configuration of
the aws2-sqs component. This is enabled by default. | | Boolean
| *camel.component.aws2-sqs.extend-message-visibility* | If enabled then a
scheduled background task will keep extending the message visibility on SQS.
This is needed if it takes a long time to process the message. If set to true
defaultVisibilityTimeout must be set. See details at Amazon docs. | false |
Boolean
| *camel.component.aws2-sqs.kms-data-key-reuse-period-seconds* | The length of
time, in seconds, for which Amazon SQS can reuse a data key to encrypt or
decrypt messages before calling AWS KMS again. An integer representing seconds,
between 60 seconds (1 minute) and 86,400 seconds (24 hours). Default: 300 (5
minutes). | | Integer
@@ -68,5 +67,6 @@ The component supports 44 options, which are listed below.
| *camel.component.aws2-sqs.use-default-credentials-provider* | Set whether
the SQS client should expect to load credentials on an AWS infra instance or to
expect static credentials to be passed in. | false | Boolean
| *camel.component.aws2-sqs.visibility-timeout* | The duration (in seconds)
that the received messages are hidden from subsequent retrieve requests after
being retrieved by a ReceiveMessage request to set in the
com.amazonaws.services.sqs.model.SetQueueAttributesRequest. This only make
sense if its different from defaultVisibilityTimeout. It changes the queue
visibility timeout attribute permanently. | | Integer
| *camel.component.aws2-sqs.wait-time-seconds* | Duration in seconds (0 to 20)
that the ReceiveMessage action call will wait until a message is in the queue
to include in the response. | | Integer
+| *camel.component.aws2-sqs.delete-if-filtered* | *Deprecated* Whether or not
to send the DeleteMessage to the SQS queue if an exchange fails to get through
a filter. If 'false' and exchange does not make it through a Camel filter
upstream in the route, then don't send DeleteMessage. | true | Boolean
|===
// spring-boot-auto-configure options: END
diff --git
a/components-starter/camel-aws2-sqs-starter/src/main/java/org/apache/camel/component/aws2/sqs/springboot/Sqs2ComponentConfiguration.java
b/components-starter/camel-aws2-sqs-starter/src/main/java/org/apache/camel/component/aws2/sqs/springboot/Sqs2ComponentConfiguration.java
index 35ae1ea..ba51931 100644
---
a/components-starter/camel-aws2-sqs-starter/src/main/java/org/apache/camel/component/aws2/sqs/springboot/Sqs2ComponentConfiguration.java
+++
b/components-starter/camel-aws2-sqs-starter/src/main/java/org/apache/camel/component/aws2/sqs/springboot/Sqs2ComponentConfiguration.java
@@ -22,6 +22,7 @@ import org.apache.camel.component.aws2.sqs.Sqs2Configuration;
import org.apache.camel.component.aws2.sqs.Sqs2Operations;
import org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon;
import org.springframework.boot.context.properties.ConfigurationProperties;
+import
org.springframework.boot.context.properties.DeprecatedConfigurationProperty;
import software.amazon.awssdk.core.Protocol;
import software.amazon.awssdk.services.sqs.SqsClient;
@@ -131,6 +132,7 @@ public class Sqs2ComponentConfiguration
* through a Camel filter upstream in the route, then don't send
* DeleteMessage.
*/
+ @Deprecated
private Boolean deleteIfFiltered = true;
/**
* If enabled then a scheduled background task will keep extending the
@@ -411,10 +413,13 @@ public class Sqs2ComponentConfiguration
this.deleteAfterRead = deleteAfterRead;
}
+ @Deprecated
+ @DeprecatedConfigurationProperty
public Boolean getDeleteIfFiltered() {
return deleteIfFiltered;
}
+ @Deprecated
public void setDeleteIfFiltered(Boolean deleteIfFiltered) {
this.deleteIfFiltered = deleteIfFiltered;
}
diff --git a/docs/modules/ROOT/pages/aws2-sqs-starter.adoc
b/docs/modules/ROOT/pages/aws2-sqs-starter.adoc
index e67a046..4e6cdd3 100644
--- a/docs/modules/ROOT/pages/aws2-sqs-starter.adoc
+++ b/docs/modules/ROOT/pages/aws2-sqs-starter.adoc
@@ -38,7 +38,6 @@ The component supports 44 options, which are listed below.
| *camel.component.aws2-sqs.delay-queue* | Define if you want to apply
delaySeconds option to the queue or on single messages | false | Boolean
| *camel.component.aws2-sqs.delay-seconds* | Delay sending messages for a
number of seconds. | | Integer
| *camel.component.aws2-sqs.delete-after-read* | Delete message from SQS after
it has been read | true | Boolean
-| *camel.component.aws2-sqs.delete-if-filtered* | Whether or not to send the
DeleteMessage to the SQS queue if an exchange fails to get through a filter. If
'false' and exchange does not make it through a Camel filter upstream in the
route, then don't send DeleteMessage. | true | Boolean
| *camel.component.aws2-sqs.enabled* | Whether to enable auto configuration of
the aws2-sqs component. This is enabled by default. | | Boolean
| *camel.component.aws2-sqs.extend-message-visibility* | If enabled then a
scheduled background task will keep extending the message visibility on SQS.
This is needed if it takes a long time to process the message. If set to true
defaultVisibilityTimeout must be set. See details at Amazon docs. | false |
Boolean
| *camel.component.aws2-sqs.kms-data-key-reuse-period-seconds* | The length of
time, in seconds, for which Amazon SQS can reuse a data key to encrypt or
decrypt messages before calling AWS KMS again. An integer representing seconds,
between 60 seconds (1 minute) and 86,400 seconds (24 hours). Default: 300 (5
minutes). | | Integer
@@ -68,5 +67,6 @@ The component supports 44 options, which are listed below.
| *camel.component.aws2-sqs.use-default-credentials-provider* | Set whether
the SQS client should expect to load credentials on an AWS infra instance or to
expect static credentials to be passed in. | false | Boolean
| *camel.component.aws2-sqs.visibility-timeout* | The duration (in seconds)
that the received messages are hidden from subsequent retrieve requests after
being retrieved by a ReceiveMessage request to set in the
com.amazonaws.services.sqs.model.SetQueueAttributesRequest. This only make
sense if its different from defaultVisibilityTimeout. It changes the queue
visibility timeout attribute permanently. | | Integer
| *camel.component.aws2-sqs.wait-time-seconds* | Duration in seconds (0 to 20)
that the ReceiveMessage action call will wait until a message is in the queue
to include in the response. | | Integer
+| *camel.component.aws2-sqs.delete-if-filtered* | *Deprecated* Whether or not
to send the DeleteMessage to the SQS queue if an exchange fails to get through
a filter. If 'false' and exchange does not make it through a Camel filter
upstream in the route, then don't send DeleteMessage. | true | Boolean
|===
// spring-boot-auto-configure options: END