13.7. Spring Boot Auto-Configuration
组件支持 36 个选项,如下所列。
| 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 时,将在提交附加块时创建附加块。 | 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。如果同时设置了前缀和 regex,则可能为空返回,regex 采用优先级,并且忽略前缀。 | 字符串 | |
| camel.component.azure-storage-blob.sas-token | 使用共享访问签名时设置 SAS 令牌 | 字符串 | |
| camel.component.azure-storage-blob.service-client | 客户端到存储帐户。此客户端不保存特定存储帐户的任何状态,而是便捷地将适当的请求发送到服务上的资源。它还可用于构建 URL 到 blob 和容器。此客户端包含服务帐户的操作。BlobContainerClient 到 BlobServiceClient#getBlobContainerClient (String)上的操作在 BlobClient 上通过 BlobContainerClient=<getBlobClient (String)提供。选项是一个 com.azure.storage.blob.BlobServiceClient 类型。 | BlobServiceClient | |
| camel.component.azure-storage-blob.source-blob-access-key | Source Blob Access Key:对于 copyblob 操作,我们需要为源 blob 有一个 accessKey,我们需要复制 Passing an accessKey 作为标头,因此我们可以设置为 key。 | 字符串 | |
| camel.component.azure-storage-blob.timeout | 将引发 RuntimeException 之外的可选超时值。选项是一个 java.time.Duration 类型。 | Duration |