137.3. 复制映射缓存制作器
复制图制作者提供 4 个操作:* put * get * delete * clear
请求消息的标头变量:
| 名称 | 类型 | 描述 |
|---|---|---|
|
|
| 有效值为: put、get、deletevalue、delete |
|
|
| 用于存储 / 的对象 ID,在缓存中找到您的对象 |
137.3.1. 放置 的示例:
Java DSL:
from("direct:put")
.setHeader(HazelcastConstants.OPERATION, constant(HazelcastOperation.PUT))
.to(String.format("hazelcast-%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));Spring DSL:
<route>
<from uri="direct:put" />
<log message="put.."/>
<!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
<setHeader headerName="hazelcast.operation.type">
<constant>put</constant>
</setHeader>
<to uri="hazelcast-replicatedmap:foo" />
</route>