156.2. Spring Boot Auto-Configuration
组件支持 5 个选项,它们如下所列。
名称 | 描述 | 默认 | 类型 |
---|---|---|---|
camel.component.ignite-compute.configuration-resource | 设置从中加载配置的资源。它可以是: URI、String (URI)或 InputStream。选项是一个 java.lang.Object 类型。 | 字符串 | |
camel.component.ignite-compute.enabled | 启用 ignite-compute 组件 | true | 布尔值 |
camel.component.ignite-compute.ignite | 设置 Ignite 实例。选项是一个 org.apache.ignite.Ignite 类型。 | 字符串 | |
camel.component.ignite-compute.ignite-configuration | 允许用户设置程序化 IgniteConfiguration。选项是一个 org.apache.ignite.configuration.IgniteConfiguration 类型。 | 字符串 | |
camel.component.ignite-compute.resolve-property-placeholders | 启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。 | true | 布尔值 |
156.2.1. 预期的有效负载类型
每个操作都需要指定类型:
操作 | 预期有效负载 |
---|---|
CALL | 可识别或一个可识别的 IgniteCallable 集合。 |
BROADCAST | IgniteCallable, IgniteRunnable, IgniteClosure。 |
APPLY | IgniteClosure. |
执行 | ComputeTask, Class<? 扩展 ComputeTask> 或代表参数的对象(如果 taskName 选项不为空)。 |
运行 | 系列 IgniteRunnables 或单个 IgniteRunnable。 |
AFFINITY_CALL | IgniteCallable. |
AFFINITY_RUN | IgniteRunnable. |