282.3. Spring Boot Auto-Configuration
组件支持 24 个选项,如下所列。
| Name | 描述 | 默认值 | 类型 |
|---|---|---|---|
| camel.component.restlet.controller-daemon | 指明控制器线程应为守护进程(而不是阻塞 JVM 退出)。 | 布尔值 | |
| camel.component.restlet.controller-sleep-time-ms | 在各个控制之间休眠控制器线程的时间。 | 整数 | |
| camel.component.restlet.disable-stream-cache | 确定是否缓存来自 Restlet 的原始输入流(Camel will read the stream in memory/overflow to file, Stream cache)缓存。默认情况下,Camel 将缓存 Restlet 输入流,以支持多次读取,以确保 Camel 可以从流检索所有数据。但是,当您需要访问原始流时,您可以将此选项设置为 true,例如将其直接流传输到文件或其他持久性存储。DefaultRestletBinding 会将请求输入流复制到流缓存中,如果此选项为 false,则将其放入消息正文中,以便支持多次读取流。 | false | 布尔值 |
| camel.component.restlet.enabled | 启用 restlet 组件 | true | 布尔值 |
| camel.component.restlet.enabled-converters | 作为完整类名称或简单类名称启用的转换器列表。如果为空或 null,则会自动注册的所有转换器 | list | |
| camel.component.restlet.header-filter-strategy | 使用自定义 org.apache.camel.spi.HeaderFilterStrategy 过滤到 Camel 消息的标头。选项是一个 org.apache.camel.spi.HeaderFilterStrategy 类型。 | 字符串 | |
| camel.component.restlet.inbound-buffer-size | 读取消息时的缓冲区的大小。 | 整数 | |
| camel.component.restlet.low-threads | 确定连接器何时被视为过载的 worker 线程数量。 | 整数 | |
| camel.component.restlet.max-connections-per-host | 每个主机(IP 地址)的最大并发连接数。 | 整数 | |
| camel.component.restlet.max-queued | 如果没有任何 worker 线程可用于服务,则可排队的最大调用数。如果值为 '0',则不使用队列,并在没有 worker 线程立即可用时拒绝调用。如果值为 '-1',则使用未绑定队列,并且调用永远不会被拒绝。 | 整数 | |
| camel.component.restlet.max-threads | 将服务请求的最大线程。 | 整数 | |
| camel.component.restlet.max-total-connections | 总的并发连接的最大数量。 | 整数 | |
| camel.component.restlet.min-threads | 等待服务请求的最小线程。 | 整数 | |
| camel.component.restlet.outbound-buffer-size | 编写消息时的缓冲区的大小。 | 整数 | |
| camel.component.restlet.persisting-connections | 表示在调用后是否应保持连接。 | 布尔值 | |
| camel.component.restlet.pipelining-connections | 指明是否支持 pipelining 连接。 | 布尔值 | |
| camel.component.restlet.port | 为 restlet 消费者路由配置端口号。这允许配置一次,以便为这些使用者重复使用相同的端口。 | 整数 | |
| camel.component.restlet.resolve-property-placeholders | 组件是否应在启动时解析属性占位符。只有 String 类型的属性可以使用属性占位符。 | true | 布尔值 |
| camel.component.restlet.reuse-address | 启用/禁用 SO_REUSEADDR 套接字选项。如需了解更多详细信息,请参阅 java.io.ServerSocket SerialreuseAddress 属性。 | 布尔值 | |
| camel.component.restlet.ssl-context-parameters | 使用 SSLContextParameters 配置安全性。选项是 org.apache.camel.util.jsse.SSLContextParameters 类型。 | 字符串 | |
| camel.component.restlet.synchronous | 是否将同步 Restlet 客户端用于制作者。将这个选项设置为 true 可获得更快的性能,因为它认为 Restlet 同步客户端可以更好地工作。 | 布尔值 | |
| camel.component.restlet.thread-max-idle-time-ms | 在收集前,空闲线程等待操作的时间。 | 整数 | |
| camel.component.restlet.use-forwarded-for-header | 查找常见代理和缓存支持的 X-Forwarded-For 标头,并使用它来填充 Request.getClientAddresses ()方法结果。此信息仅适用于您的本地网络中的中介组件。通过设置一个假的标头来轻松地更改其他地址,且不应因为严重的安全检查而被信任。 | 布尔值 | |
| camel.component.restlet.use-global-ssl-context-parameters | 启用使用全局 SSL 上下文参数。 | false | 布尔值 |