35.3. Spring Boot Auto-Configuration


组件支持 31 选项,如下所示。

Expand
名称描述默认类型

camel.component.aws-sqs.access-key

Amazon AWS 访问密钥

 

字符串

camel.component.aws-sqs.configuration.access-key

Amazon AWS 访问密钥

 

字符串

camel.component.aws-sqs.configuration.amazon-a-w-s-host

Amazon AWS 云的主机名。

amazonaws.com

字符串

camel.component.aws-sqs.configuration.amazon-s-q-s-client

使用 AmazonSQS 作为客户端

 

AmazonSQS

camel.component.aws-sqs.configuration.attribute-names

要在消耗时接收的属性名称列表。可以使用逗号分隔多个名称。

 

字符串

camel.component.aws-sqs.configuration.concurrent-consumers

允许您使用多个线程轮询 sqs 队列来增加吞吐量

1

整数

camel.component.aws-sqs.configuration.default-visibility-timeout

默认可见性超时(以秒为单位)

 

整数

camel.component.aws-sqs.configuration.delay-queue

定义是否要将 delaySeconds 选项应用到队列或单个消息

false

布尔值

camel.component.aws-sqs.configuration.delay-seconds

延迟发送消息的秒数。

 

整数

camel.component.aws-sqs.configuration.delete-after-read

读取后,从 SQS 删除消息

true

布尔值

camel.component.aws-sqs.configuration.delete-if-filtered

如果交换无法通过过滤器,则是否将 DeleteMessage 发送到 SQS 队列。如果 'false' 和 Exchange 没有通过路由上游的 Camel 过滤器进行,则不会发送 DeleteMessage。

true

布尔值

camel.component.aws-sqs.configuration.extend-message-visibility

如果启用,则调度的后台任务将保留扩展 SQS 上消息可见性。如果处理消息需要很长时间,则需要这个操作。如果设为 true defaultVisibilityTimeout,则必须设置。请参阅 Amazon 文档的详细信息。

false

布尔值

camel.component.aws-sqs.configuration.maximum-message-size

SQS 消息可包含此队列的 maximumMessageSize(以字节为单位)。

 

整数

camel.component.aws-sqs.configuration.message-attribute-names

要在消耗时接收的消息属性名称列表。可以使用逗号分隔多个名称。

 

字符串

camel.component.aws-sqs.configuration.message-retention-period

messageRetentionPeriod(以秒为单位)由 SQS 保留此队列的消息。

 

整数

camel.component.aws-sqs.configuration.policy

此队列的策略

 

字符串

camel.component.aws-sqs.configuration.proxy-host

在实例化 SQS 客户端时定义代理主机

 

字符串

camel.component.aws-sqs.configuration.proxy-port

在实例化 SQS 客户端时定义代理端口

 

整数

camel.component.aws-sqs.configuration.queue-name

队列的名称。如果队列不存在,则会创建队列。

 

字符串

camel.component.aws-sqs.configuration.queue-owner-a-w-s-account-id

当您需要使用不同的帐户拥有者时,请指定队列拥有者 aws 帐户 id。

 

字符串

camel.component.aws-sqs.configuration.queue-url

明确定义 queueUrl。所有其他参数(将影响 queueUrl)将被忽略。为了测试目的,可使用此参数连接到 SQS 的模拟实施。

 

字符串

camel.component.aws-sqs.configuration.receive-message-wait-time-seconds

如果您没有在请求中指定 WaitTimeSeconds,则队列属性 ReceiveMessageWaitTimeSeconds 用于确定要等待的时长。

 

整数

camel.component.aws-sqs.configuration.redrive-policy

指定向 DeadLetter 队列发送消息的策略。请参阅 Amazon 文档。

 

字符串

camel.component.aws-sqs.configuration.region

指定可与 queueOwnerAWSAccountId 一起使用的队列区域,以构建服务 URL。

 

字符串

camel.component.aws-sqs.configuration.secret-key

Amazon AWS Secret Key

 

字符串

camel.component.aws-sqs.configuration.visibility-timeout

在由 ReceiveMessage 请求在 com.amazonaws.services.sqs.model.SetQueueAttributesRequest 中检索后,接收的消息从后续检索请求中隐藏的时间(以秒为单位)。这只在它与 defaultVisibilityTimeout 不同时才有意义。它永久更改队列可见性超时属性。

 

整数

camel.component.aws-sqs.configuration.wait-time-seconds

ReceiveMessage action 调用将等待持续持续一个消息以包含在响应中的持续时间(以秒为单位)(0 到 20)。

 

整数

camel.component.aws-sqs.enabled

启用 aws-sqs 组件

true

布尔值

camel.component.aws-sqs.region

指定可与 queueOwnerAWSAccountId 一起使用的队列区域,以构建服务 URL。

 

字符串

camel.component.aws-sqs.resolve-property-placeholders

启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。

true

布尔值

camel.component.aws-sqs.secret-key

Amazon AWS Secret Key

 

字符串

所需的 SQS 组件选项

您必须提供 Registry 中的 amazonSQSClient 或您的 accessKey 和 secretKey 以访问 Amazon 的 SQS

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat