36.3. Spring Boot Auto-Configuration


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

Expand
Name描述默认值类型

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

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

 

整数

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

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

 

字符串

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

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

 

整数

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,则使用 queue 属性 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 密钥

 

字符串

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

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

 

整数

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

ReceiveMessage 操作调用的持续时间(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 密钥

 

字符串

所需的 SQS 组件选项

您必须在 Registry 或 accessKey 和 secretKey 中提供 amazonSQSClient,才能访问 Amazon 的 SQS

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat