15.7. Spring Boot Auto-Configuration


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

Expand
Name描述默认值类型

camel.component.azure-storage-blob.access-key

用于与 azure blob 服务进行身份验证的相关 azure 帐户名称的访问密钥。

 

字符串

camel.component.azure-storage-blob.autowired-enabled

是否启用自动关闭。这用于自动关闭选项(选项必须标记为 autowired),方法是在 registry 中查找查找是否有单个匹配类型实例,然后在组件上配置。这可以用于自动配置 JDBC 数据源、JMS 连接工厂、AWS 客户端等。

true

布尔值

camel.component.azure-storage-blob.blob-name

blob 名称,使用容器中的特定 blob。但是,在生成者中,只有 blob 级别的操作才需要。

 

字符串

camel.component.azure-storage-blob.blob-offset

为上传或下载操作设置 blob 偏移,默认为 0。

0

Long

camel.component.azure-storage-blob.blob-sequence-number

一个用户控制的值,可用于跟踪请求。序列号的值必须在 0 到 263 - 1 之间。默认值为 0。

0

Long

camel.component.azure-storage-blob.blob-type

blob 类型,以便为每个 blob 类型启动适当的设置。

 

BlobType

camel.component.azure-storage-blob.block-list-type

指定要返回的块类型。

 

BlockListType

camel.component.azure-storage-blob.bridge-error-handler

允许将消费者桥接到 Camel 路由错误处理程序,这意味着当消费者试图选择传入消息或类似信息时发生异常,现在将作为消息处理并由路由 Error Handler 处理。默认情况下,使用者将使用 org.apache.camel.spi.ExceptionHandler 来处理例外情况,该处理程序将被记录在 WARN 或 ERROR 级别,并忽略。

false

布尔值

camel.component.azure-storage-blob.change-feed-context

在使用 getChangeFeed producer 操作时,这提供了在服务调用期间通过 Http 管道传递的额外上下文。选项是一个 com.azure.core.util.Context 类型。

 

Context

camel.component.azure-storage-blob.change-feed-end-time

在使用 getChangeFeed producer 操作时,这会过滤结果,以便在结束时间之前返回事件。注意:也可以返回属于下一小时的几个事件。可以缺少属于此小时的几个事件;若要确保每小时的所有事件都被返回,可按小时舍入结束时间。选项是一个 java.time.OffsetDateTime 类型。

 

OffsetDateTime

camel.component.azure-storage-blob.change-feed-start-time

在使用 getChangeFeed producer 操作时,这将过滤结果以在开始时间后返回事件。注意:也可以返回属于上一小时的几个事件。可以缺少属于此小时的几个事件;若要确保每小时的所有事件都被返回,可按小时舍入开始时间。选项是一个 java.time.OffsetDateTime 类型。

 

OffsetDateTime

camel.component.azure-storage-blob.close-stream-after-read

读取或保持打开后,关闭流,默认为 true。

true

布尔值

camel.component.azure-storage-blob.close-stream-after-write

在写后关闭流,或保持打开状态,默认为 true。

true

布尔值

camel.component.azure-storage-blob.commit-block-list-later

当 设为 true 时,暂存块不会被直接提交。

true

布尔值

camel.component.azure-storage-blob.configuration

组件配置。选项是 org.apache.camel.component.azure.storage.blob.BlobConfiguration 类型。

 

BlobConfiguration

camel.component.azure-storage-blob.create-append-blob

当 设为 true 时,将在提交附加块时创建 append 块。

true

布尔值

camel.component.azure-storage-blob.create-page-blob

当 设置为 true 时,会在上传页面 blob 时创建页面 blob。

true

布尔值

camel.component.azure-storage-blob.credential-type

决定采用的凭据策略。

 

CredentialType

camel.component.azure-storage-blob.credentials

StorageSharedKeyCredential 可以注入来创建 azure 客户端,这包含重要的身份验证信息。选项是一个 com.azure.storage.common.StorageSharedKeyCredential 类型。

 

StorageSharedKeyCredential

camel.component.azure-storage-blob.data-count

包括在范围内的字节数。如果指定,则必须大于或等于 0。

 

Long

camel.component.azure-storage-blob.download-link-expiration

覆盖 URL 下载链接的默认到期(millis)。

 

Long

camel.component.azure-storage-blob.enabled

是否启用 azure-storage-blob 组件的自动配置。这默认是启用的。

 

布尔值

camel.component.azure-storage-blob.file-dir

下载的 blob 将保存到的文件目录,这可用于生成者和消费者。

 

字符串

camel.component.azure-storage-blob.health-check-consumer-enabled

用于启用或禁用此组件中的所有基于消费者的健康检查。

true

布尔值

camel.component.azure-storage-blob.health-check-producer-enabled

用于启用或禁用此组件中的所有基于制作者的健康检查。注意:Camel 默认禁用所有基于制作者的健康检查。您可以通过设置 camel.health.producersEnabled=true 来全局打开制作者检查。

true

布尔值

camel.component.azure-storage-blob.lazy-start-producer

生成者是否应懒惰启动 (在第一个消息中)。通过懒惰启动,您可以使用此选项来允许 CamelContext 和路由在生成者启动期间启动,并导致路由启动失败。通过懒惰启动,启动失败可以在路由信息时通过 Camel 的路由错误处理程序进行处理。请注意,在处理第一个消息时,创建并启动生成者可能需要稍等时间,并延长处理的总处理时间。

false

布尔值

camel.component.azure-storage-blob.max-results-per-page

指定要返回的最大 Blob 数量,包括所有 BlobPrefix 元素。如果请求没有指定 maxResultsPerPage 或指定大于 5,000 的值,服务器将返回到 5,000 个项。

 

整数

camel.component.azure-storage-blob.max-retry-requests

指定从响应正文读取数据时将进行的最大额外 HTTP Get 请求数。

0

整数

camel.component.azure-storage-blob.operation

可以在生成者上用于此组件的 blob 操作。

 

BlobOperationsDefinition

camel.component.azure-storage-blob.page-blob-size

指定页面 blob 的最大大小,最多 8 TB。页面 blob 大小必须与 512 字节边界一致。

512

Long

camel.component.azure-storage-blob.prefix

过滤结果,以仅返回名称以指定前缀开头的 Blob。可以为空,以返回所有 Blob。

 

字符串

camel.component.azure-storage-blob.regex

过滤结果,以仅返回名称与指定正则表达式匹配的 Blob。可以为空,如果同时设置了前缀和正则表达式,则正则表达式将忽略优先级和前缀。

 

字符串

camel.component.azure-storage-blob.sas-token

在使用共享访问签名时设置 SAS 令牌

 

字符串

camel.component.azure-storage-blob.service-client

客户端到存储帐户。此客户端不保存有关特定存储帐户的任何状态,而是方便地将适当的请求发送到服务中的资源。它还可用于构建 URL 到 blob 和容器。此客户端包含服务帐户上的操作。容器上的操作可以在 BlobContainerClient 到 BlobServiceClient#getBlobContainerClient (String)上的操作,以及 BlobClient 到 BlobContainerClientIdgetBlobClient (String)上的操作。选项是一个 com.azure.storage.blob.BlobServiceClient 类型。

 

BlobServiceClient

camel.component.azure-storage-blob.source-blob-access-key

Source Blob Access Key: for copyblob operation, sadly,我们需要为源 blob 有一个 accessKey,我们需要复制 accessKey 作为标头,因此我们可以将 key 设置为 key。

 

字符串

camel.component.azure-storage-blob.timeout

可选超时值,超过将引发 RuntimeException 的可选超时值。选项是一个 java.time.Duration 类型。

 

Duration

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2026 Red Hat
返回顶部