You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2015/09/11 14:21:08 UTC

svn commit: r965084 [2/2] - in /websites/production/camel/content: book-component-appendix.html book-in-one-page.html cache/main.pageCache hazelcast-component.html

Modified: websites/production/camel/content/hazelcast-component.html
==============================================================================
--- websites/production/camel/content/hazelcast-component.html (original)
+++ websites/production/camel/content/hazelcast-component.html Fri Sep 11 12:21:06 2015
@@ -86,564 +86,584 @@
         <tr>
         <td valign="top" width="100%">
 <div class="wiki-content maincontent"><h2 id="HazelcastComponent-HazelcastComponent">Hazelcast Component</h2><p><strong>Available as of Camel 2.7</strong></p><p>The <strong>hazelcast:</strong> component allows you to work with the <a shape="rect" class="external-link" href="http://www.hazelcast.com" rel="nofollow">Hazelcast</a> distributed data grid / cache. Hazelcast is a in memory data grid, entirely written in Java (single jar). It offers a great palette of different data stores like map, multi map (same key, n values), queue, list and atomic number. The main reason to use Hazelcast is its simple cluster support. If you have enabled multicast on your network you can run a cluster with hundred nodes with no extra configuration. Hazelcast can simply configured to add additional features like n copies between nodes (default is 1), cache persistence, network configuration (if needed), near cache, enviction and so on. For more information consult the Hazelcast documentation on <a shap
 e="rect" class="external-link" href="http://www.hazelcast.com/docs.jsp" rel="nofollow">http://www.hazelcast.com/docs.jsp</a>.</p><p>Maven users will need to add the following dependency to their <code>pom.xml</code> for this component:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: xml; gutter: false; theme: Default" style="font-size:12px;">&lt;dependency&gt;
+<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
     &lt;artifactId&gt;camel-hazelcast&lt;/artifactId&gt;
     &lt;version&gt;x.x.x&lt;/version&gt;
     &lt;!-- use the same version as your Camel core version --&gt;
 &lt;/dependency&gt;
-</pre>
+]]></script>
 </div></div><h3 id="HazelcastComponent-URIformat">URI format</h3><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">hazelcast:[ map | multimap | queue | topic | seda | set | atomicvalue | instance | list]:cachename[?options]
-</pre>
-</div></div><div class="confluence-information-macro confluence-information-macro-information"><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>Topic support is available as of Camel 2.15.&#160;</p></div></div><p>&#160;</p><h3 id="HazelcastComponent-Options">Options</h3><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Name</th><th colspan="1" rowspan="1" class="confluenceTh">Required</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">hazelcastInstance</td><td colspan="1" rowspan="1" class="confluenceTd">No</td><td colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.14:</strong><span> The hazelcast instance <strong>reference</strong> which can be used for hazelcast endpoint. If you don't specify the instance reference, camel use the defaul
 t hazelcast instance from the camel-hazelcast instance.</span></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">hazelcastInstanceName</td><td colspan="1" rowspan="1" class="confluenceTd">No</td><td colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.16:</strong><span> The hazelcast instance <strong>reference name</strong> which can be used for hazelcast endpoint. If you don't specify the instance reference, camel use the default hazelcast instance from the camel-hazelcast instance.</span></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">operation</td><td colspan="1" rowspan="1" class="confluenceTd">-1</td><td colspan="1" rowspan="1" class="confluenceTd"><span>To specify a default operation to use, if no operation header has been provided. </span><strong>deprecated</strong><span> use defaultOperation instead.</span></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><span>defaultOperation</span></td><td colspan="1" rowspan="1" class="conf
 luenceTd">-1</td><td colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.15:</strong><span> To specify a default operation to use, if no operation header has been provided.</span></td></tr></tbody></table></div><div class="confluence-information-macro confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>You have to use the second prefix to define which type of data store you want to use.</p></div></div><h3 id="HazelcastComponent-Sections">Sections</h3><ol><li>Usage of <a shape="rect" href="hazelcast-component.html">#map</a></li><li>Usage of <a shape="rect" href="hazelcast-component.html">#multimap</a></li><li>Usage of <a shape="rect" href="hazelcast-component.html">#queue</a></li><li>Usage of <a shape="rect" href="hazelcast-component.html">#topic</a></li><li>Usage of <a shape="rect" href="hazelcast-component.html">#list</a></li><li>Usage of <a
  shape="rect" href="hazelcast-component.html">#seda</a></li><li>Usage of <a shape="rect" href="hazelcast-component.html">atomic number</a></li><li>Usage of <a shape="rect" href="hazelcast-component.html">#cluster</a> support (instance)</li><li>Usage of <a shape="rect" href="hazelcast-component.html">#replicatedmap</a>&#160;</li></ol><p><span class="confluence-anchor-link" id="HazelcastComponent-map"></span></p><h3 id="HazelcastComponent-UsageofMap">Usage of Map</h3><h4 id="HazelcastComponent-mapcacheproducer-to(&quot;hazelcast:map:foo&quot;)">map cache producer - to("hazelcast:map:foo")</h4><p>If you want to store a value in a map you can use the map cache producer. The map cache producer provides 5 operations (put, get, update, delete, query). For the first 4 you have to provide the operation inside the "hazelcast.operation.type" header variable. In Java DSL you can use the constants from <code>org.apache.camel.component.hazelcast.HazelcastConstants</code>.</p><p>Header Variables f
 or the request message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.operation.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, delete, get, update, query</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache (not needed for the query operation)</p></td></tr></tbody></table></div><div class="confluence-information-macro 
 confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>Header variables have changed in Camel 2.8</p></div></div><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastOperationType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, delete, get, update, query <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p><p><strong><strong>From Camel 2.16:</strong></strong> getAll, putIfAbsent, clear.</p></td></tr><tr><td colspan="1
 " rowspan="1" class="confluenceTd"><p><code>CamelHazelcastObjectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache (not needed for the query operation) <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div><p>You can call the samples with:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">template.sendBodyAndHeader("direct:[put|get|update|delete|query]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
-</pre>
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[hazelcast:[ map | multimap | queue | topic | seda | set | atomicvalue | instance | list | ringbuffer]:cachename[?options]
+]]></script>
+</div></div><div class="confluence-information-macro confluence-information-macro-information"><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>Topic support is available as of Camel 2.15.&#160;</p></div></div><div class="confluence-information-macro confluence-information-macro-information"><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>RingBuffer support is available as of Camel 2.16.&#160;</p></div></div><h3 id="HazelcastComponent-Options">Options</h3><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Name</th><th colspan="1" rowspan="1" class="confluenceTh">Required</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">hazelcastInstance</td><td colsp
 an="1" rowspan="1" class="confluenceTd">No</td><td colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.14:</strong><span> The hazelcast instance <strong>reference</strong> which can be used for hazelcast endpoint. If you don't specify the instance reference, camel use the default hazelcast instance from the camel-hazelcast instance.</span></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">hazelcastInstanceName</td><td colspan="1" rowspan="1" class="confluenceTd">No</td><td colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.16:</strong><span> The hazelcast instance <strong>reference name</strong> which can be used for hazelcast endpoint. If you don't specify the instance reference, camel use the default hazelcast instance from the camel-hazelcast instance.</span></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">operation</td><td colspan="1" rowspan="1" class="confluenceTd">-1</td><td colspan="1" rowspan="1" class="confluenceTd"><span>To spe
 cify a default operation to use, if no operation header has been provided. </span><strong>deprecated</strong><span> use defaultOperation instead.</span></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><span>defaultOperation</span></td><td colspan="1" rowspan="1" class="confluenceTd">-1</td><td colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.15:</strong><span> To specify a default operation to use, if no operation header has been provided.</span></td></tr></tbody></table></div><div class="confluence-information-macro confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>You have to use the second prefix to define which type of data store you want to use.</p></div></div><h3 id="HazelcastComponent-Sections">Sections</h3><ol><li>Usage of <a shape="rect" href="#HazelcastComponent-map">#map</a></li><li>Usage of <a shape="rect" href=
 "#HazelcastComponent-multimap">#multimap</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-queue">#queue</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-topic">#topic</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-list">#list</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-seda">#seda</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-atomicnumber">atomic number</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-cluster">#cluster</a> support (instance)</li><li>Usage of <a shape="rect" href="#HazelcastComponent-replicatedmap">#replicatedmap</a>&#160;</li><li>Usage of&#160;<a shape="rect" href="#HazelcastComponent-ringbuffer">#ringbuffer</a>&#160;</li></ol><p><span class="confluence-anchor-link" id="HazelcastComponent-map"></span></p><h3 id="HazelcastComponent-UsageofMap">Usage of Map</h3><h4 id="HazelcastComponent-mapcacheproducer-to(&quot;hazelcast:map:foo&quot;)">map cache producer - to("hazelcast:ma
 p:foo")</h4><p>If you want to store a value in a map you can use the map cache producer. The map cache producer provides 5 operations (put, get, update, delete, query). For the first 4 you have to provide the operation inside the "hazelcast.operation.type" header variable. In Java DSL you can use the constants from <code>org.apache.camel.component.hazelcast.HazelcastConstants</code>.</p><p>Header Variables for the request message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.operation.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, delete, get, update, query</p
 ></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache (not needed for the query operation)</p></td></tr></tbody></table></div><div class="confluence-information-macro confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>Header variables have changed in Camel 2.8</p></div></div><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHa
 zelcastOperationType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, delete, get, update, query <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p><p><strong><strong>From Camel 2.16:</strong></strong> getAll, putIfAbsent, clear.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastObjectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache (not needed for the query operation) <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div><p>You can call the samples with:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[template.sendBodyAndHeader(&quot;direct:[put|get|update|delete|query]&quot;, &quot;my-foo&quot;, HazelcastConstants.OBJECT_ID, &quot;4711&quot;);
+]]></script>
 </div></div><h5 id="HazelcastComponent-Sampleforput:">Sample for <strong>put</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:put")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:put&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sfoo&quot;, HazelcastConstants.MAP_PREFIX);
+]]></script>
 </div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:put" /&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:put&quot; /&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;put&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:map:foo" /&gt;
+	&lt;to uri=&quot;hazelcast:map:foo&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><h5 id="HazelcastComponent-Sampleforget:">Sample for <strong>get</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:get")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:get&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX)
-.to("seda:out");
-</pre>
-</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:get" /&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+.toF(&quot;hazelcast:%sfoo&quot;, HazelcastConstants.MAP_PREFIX)
+.to(&quot;seda:out&quot;);
+]]></script>
+</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:get&quot; /&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;get&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:map:foo" /&gt;
-	&lt;to uri="seda:out" /&gt;
+	&lt;to uri=&quot;hazelcast:map:foo&quot; /&gt;
+	&lt;to uri=&quot;seda:out&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><h5 id="HazelcastComponent-Sampleforupdate:">Sample for <strong>update</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:update")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:update&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.UPDATE_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sfoo&quot;, HazelcastConstants.MAP_PREFIX);
+]]></script>
 </div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:update" /&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:update&quot; /&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;update&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:map:foo" /&gt;
+	&lt;to uri=&quot;hazelcast:map:foo&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><h5 id="HazelcastComponent-Samplefordelete:">Sample for <strong>delete</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:delete")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:delete&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sfoo&quot;, HazelcastConstants.MAP_PREFIX);
+]]></script>
 </div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:delete" /&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:delete&quot; /&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;delete&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:map:foo" /&gt;
+	&lt;to uri=&quot;hazelcast:map:foo&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><h5 id="HazelcastComponent-Sampleforquery">Sample for <strong>query</strong></h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:query")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:query&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.QUERY_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX)
-.to("seda:out");
-</pre>
-</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:query" /&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+.toF(&quot;hazelcast:%sfoo&quot;, HazelcastConstants.MAP_PREFIX)
+.to(&quot;seda:out&quot;);
+]]></script>
+</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:query&quot; /&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;query&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:map:foo" /&gt;
-	&lt;to uri="seda:out" /&gt;
+	&lt;to uri=&quot;hazelcast:map:foo&quot; /&gt;
+	&lt;to uri=&quot;seda:out&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><p>For the query operation Hazelcast offers a SQL like syntax to query your distributed map.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">String q1 = "bar &gt; 1000";
-template.sendBodyAndHeader("direct:query", null, HazelcastConstants.QUERY, q1);
-</pre>
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[String q1 = &quot;bar &gt; 1000&quot;;
+template.sendBodyAndHeader(&quot;direct:query&quot;, null, HazelcastConstants.QUERY, q1);
+]]></script>
 </div></div><h3 id="HazelcastComponent-mapcacheconsumer-from(&quot;hazelcast:map:foo&quot;)">map cache consumer - from("hazelcast:map:foo")</h3><p>Hazelcast provides event listeners on their data grid. If you want to be notified if a cache will be manipulated, you can use the map consumer. There're 4 events: <strong>put</strong>, <strong>update</strong>, <strong>delete</strong> and <strong>envict</strong>. The event type will be stored in the "<strong>hazelcast.listener.action</strong>" header variable. The map consumer provides some additional information inside these variables:</p><p>Header Variables inside the response message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.t
 ime</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "cachelistener"</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.action</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong>, <strong>updated</strong>, <strong>envicted</strong> and <strong>removed</strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"
 ><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the oid of the object</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.cache.name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the name of the cache - e.g. "foo"</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.cache.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the type of the cache - here map</p></td></tr></tbody></table></div><div class="confluence-information-macro confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>Header variables have changed in Camel 2.8</p></div></div><div class="table
 -wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerTime</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "cachelistener" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" 
 rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerAction</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong>, <strong>updated</strong>, <strong>envicted</strong> and <strong>removed</strong>. <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastObjectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the oid of the object <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastCacheName</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="co
 nfluenceTd"><p>the name of the cache - e.g. "foo" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastCacheType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the type of the cache - here map <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div><p>The object value will be stored within <strong>put</strong> and <strong>update</strong> actions inside the message body.</p><p>Here's a sample:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">fromF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX)
-.log("object...")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[fromF(&quot;hazelcast:%sfoo&quot;, HazelcastConstants.MAP_PREFIX)
+.log(&quot;object...&quot;)
 .choice()
     .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
-         .log("...added")
-         .to("mock:added")
+         .log(&quot;...added&quot;)
+         .to(&quot;mock:added&quot;)
     .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
-         .log("...envicted")
-         .to("mock:envicted")
+         .log(&quot;...envicted&quot;)
+         .to(&quot;mock:envicted&quot;)
     .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.UPDATED))
-         .log("...updated")
-         .to("mock:updated")
+         .log(&quot;...updated&quot;)
+         .to(&quot;mock:updated&quot;)
     .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
-         .log("...removed")
-         .to("mock:removed")
+         .log(&quot;...removed&quot;)
+         .to(&quot;mock:removed&quot;)
     .otherwise()
-         .log("fail!");
-</pre>
+         .log(&quot;fail!&quot;);
+]]></script>
 </div></div><p><span class="confluence-anchor-link" id="HazelcastComponent-multimap"></span></p><h3 id="HazelcastComponent-UsageofMultiMap">Usage of Multi Map</h3><h4 id="HazelcastComponent-multimapcacheproducer-to(&quot;hazelcast:multimap:foo&quot;)">multimap cache producer - to("hazelcast:multimap:foo")</h4><p>A multimap is a cache where you can store n values to one key. The multimap producer provides 4 operations (put, get, removevalue, delete).</p><p>Header Variables for the request message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.operation.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="co
 nfluenceTd"><p>valid values are: put, get, removevalue, delete</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache</p></td></tr></tbody></table></div><div class="confluence-information-macro confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>Header variables have changed in Camel 2.8</p></div></div><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="co
 nfluenceTd"><p><code>CamelHazelcastOperationType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, get, removevalue, delete <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p><p><strong><strong><strong>From Camel 2.16:</strong></strong></strong> clear.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastObjectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div><h5 id="HazelcastComponent-Sampleforput:.1">Sample for <strong>put</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent pan
 elContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:put")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:put&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
-.to(String.format("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX));
-</pre>
+.to(String.format(&quot;hazelcast:%sbar&quot;, HazelcastConstants.MULTIMAP_PREFIX));
+]]></script>
 </div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:put" /&gt;
-	&lt;log message="put.."/&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:put&quot; /&gt;
+	&lt;log message=&quot;put..&quot;/&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;put&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:multimap:foo" /&gt;
+	&lt;to uri=&quot;hazelcast:multimap:foo&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><h5 id="HazelcastComponent-Sampleforremovevalue:">Sample for <strong>removevalue</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:removevalue")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:removevalue&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.MULTIMAP_PREFIX);
+]]></script>
 </div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:removevalue" /&gt;
-	&lt;log message="removevalue..."/&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:removevalue&quot; /&gt;
+	&lt;log message=&quot;removevalue...&quot;/&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;removevalue&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:multimap:foo" /&gt;
+	&lt;to uri=&quot;hazelcast:multimap:foo&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><p>To remove a value you have to provide the value you want to remove inside the message body. If you have a multimap object {<code>key: "4711" values: { "my-foo", "my-bar"</code>}} you have to put "my-foo" inside the message body to remove the "my-foo" value.</p><h5 id="HazelcastComponent-Sampleforget:.1">Sample for <strong>get</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:get")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:get&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX)
-.to("seda:out");
-</pre>
-</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:get" /&gt;
-	&lt;log message="get.."/&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.MULTIMAP_PREFIX)
+.to(&quot;seda:out&quot;);
+]]></script>
+</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:get&quot; /&gt;
+	&lt;log message=&quot;get..&quot;/&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;get&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:multimap:foo" /&gt;
-	&lt;to uri="seda:out" /&gt;
+	&lt;to uri=&quot;hazelcast:multimap:foo&quot; /&gt;
+	&lt;to uri=&quot;seda:out&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><h5 id="HazelcastComponent-Samplefordelete:.1">Sample for <strong>delete</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:delete")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:delete&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.MULTIMAP_PREFIX);
+]]></script>
 </div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:delete" /&gt;
-	&lt;log message="delete.."/&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:delete&quot; /&gt;
+	&lt;log message=&quot;delete..&quot;/&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;delete&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:multimap:foo" /&gt;
+	&lt;to uri=&quot;hazelcast:multimap:foo&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><p>you can call them in your test class with:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">template.sendBodyAndHeader("direct:[put|get|removevalue|delete]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
-</pre>
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[template.sendBodyAndHeader(&quot;direct:[put|get|removevalue|delete]&quot;, &quot;my-foo&quot;, HazelcastConstants.OBJECT_ID, &quot;4711&quot;);
+]]></script>
 </div></div><h4 id="HazelcastComponent-multimapcacheconsumer-from(&quot;hazelcast:multimap:foo&quot;)">multimap cache consumer - from("hazelcast:multimap:foo")</h4><p>For the multimap cache this component provides the same listeners / variables as for the map cache consumer (except the update and enviction listener). The only difference is the <strong>multimap</strong> prefix inside the URI. Here is a sample:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">fromF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX)
-.log("object...")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[fromF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.MULTIMAP_PREFIX)
+.log(&quot;object...&quot;)
 .choice()
 	.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
-		.log("...added")
-                .to("mock:added")
+		.log(&quot;...added&quot;)
+                .to(&quot;mock:added&quot;)
         //.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
-        //        .log("...envicted")
-        //        .to("mock:envicted")
+        //        .log(&quot;...envicted&quot;)
+        //        .to(&quot;mock:envicted&quot;)
         .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
-                .log("...removed")
-                .to("mock:removed")
+                .log(&quot;...removed&quot;)
+                .to(&quot;mock:removed&quot;)
         .otherwise()
-                .log("fail!");
-</pre>
+                .log(&quot;fail!&quot;);
+]]></script>
 </div></div><p>Header Variables inside the response message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.time</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "cachelistener"</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.action</code></p><
 /td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> and <strong>removed</strong> (and soon <strong>envicted</strong>)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the oid of the object</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.cache.name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the name of the cache - e.g. "foo"</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.cache.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" row
 span="1" class="confluenceTd"><p>the type of the cache - here multimap</p></td></tr></tbody></table></div><p>Eviction will be added as feature, soon (this is a Hazelcast issue).</p><div class="confluence-information-macro confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>Header variables have changed in Camel 2.8</p></div></div><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerTime</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in mil
 lis <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "cachelistener" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerAction</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> and <strong>removed</strong> (and soon <strong>envicted</strong>) <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastObjectId</code></p><
 /td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the oid of the object <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastCacheName</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the name of the cache - e.g. "foo" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastCacheType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the type of the cache - here multimap <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div><p><span
  class="confluence-anchor-link" id="HazelcastComponent-queue"></span></p><h3 id="HazelcastComponent-UsageofQueue">Usage of Queue</h3><h4 id="HazelcastComponent-Queueproducer&#8211;to(&#8220;hazelcast:queue:foo&#8221;)">Queue producer &#8211; to(&#8220;hazelcast:queue:foo&#8221;)</h4><p>The queue producer provides 6 operations (add, put, poll, peek, offer, removevalue).</p><h5 id="HazelcastComponent-Sampleforadd:">Sample for <strong>add</strong>:</h5><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:add")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:add&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.QUEUE_PREFIX);
+]]></script>
 </div></div><h5 id="HazelcastComponent-Sampleforput:.2">Sample for <strong>put</strong>:</h5><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:put")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:put&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.QUEUE_PREFIX);
+]]></script>
 </div></div><h5 id="HazelcastComponent-Sampleforpoll:">Sample for <strong>poll</strong>:</h5><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:poll")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:poll&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.POLL_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.QUEUE_PREFIX);
+]]></script>
 </div></div><h5 id="HazelcastComponent-Sampleforpeek:">Sample for <strong>peek</strong>:</h5><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:peek")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:peek&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PEEK_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.QUEUE_PREFIX);
+]]></script>
 </div></div><h5 id="HazelcastComponent-Sampleforoffer:">Sample for <strong>offer</strong>:</h5><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:offer")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:offer&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.OFFER_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.QUEUE_PREFIX);
+]]></script>
 </div></div><h5 id="HazelcastComponent-Sampleforremovevalue:.1">Sample for <strong>removevalue</strong>:</h5><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:removevalue")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:removevalue&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.QUEUE_PREFIX);
+]]></script>
 </div></div><h4 id="HazelcastComponent-Queueconsumer&#8211;from(&#8220;hazelcast:queue:foo&#8221;)">Queue consumer &#8211; from(&#8220;hazelcast:queue:foo&#8221;)</h4><p>The queue consumer provides 2 operations (add, remove).</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">fromF("hazelcast:%smm", HazelcastConstants.QUEUE_PREFIX)
-   .log("object...")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[fromF(&quot;hazelcast:%smm&quot;, HazelcastConstants.QUEUE_PREFIX)
+   .log(&quot;object...&quot;)
    .choice()
 	.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
-        	.log("...added")
-		.to("mock:added")
+        	.log(&quot;...added&quot;)
+		.to(&quot;mock:added&quot;)
 	.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
-		.log("...removed")
-		.to("mock:removed")
+		.log(&quot;...removed&quot;)
+		.to(&quot;mock:removed&quot;)
 	.otherwise()
-		.log("fail!");
-</pre>
+		.log(&quot;fail!&quot;);
+]]></script>
 </div></div><h3 id="HazelcastComponent-topic"><span class="confluence-anchor-link" id="HazelcastComponent-topic"></span></h3><h3 id="HazelcastComponent-UsageofTopic">Usage of Topic</h3><h4 id="HazelcastComponent-Topicproducer&#8211;to(&#8220;hazelcast:topic:foo&#8221;)">Topic producer &#8211; to(&#8220;hazelcast:topic:foo&#8221;)</h4><p>The topic producer provides only one operation (publish).</p><h5 id="HazelcastComponent-Sampleforpublish:">Sample for&#160;<strong>publish</strong>:</h5><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:add")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:add&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUBLISH_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.PUBLISH_OPERATION);
-</pre>
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.PUBLISH_OPERATION);
+]]></script>
 </div></div><h4 id="HazelcastComponent-Topicconsumer&#8211;from(&#8220;hazelcast:topic:foo&#8221;)">Topic consumer &#8211; from(&#8220;hazelcast:topic:foo&#8221;)</h4><p>The topic consumer provides only one operation (received). This component is supposed to support multiple consumption as it's expected when it comes to topics so you are free to have as much consumers as you need on the same hazelcast topic.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">fromF("hazelcast:%sfoo", HazelcastConstants.TOPIC_PREFIX)
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[fromF(&quot;hazelcast:%sfoo&quot;, HazelcastConstants.TOPIC_PREFIX)
   .choice()
     .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.RECEIVED))
-      .log("...message received")
+      .log(&quot;...message received&quot;)
     .otherwise()
-      .log("...this should never have happened")</pre>
+      .log(&quot;...this should never have happened&quot;)]]></script>
 </div></div><p>&#160;</p><p><span class="confluence-anchor-link" id="HazelcastComponent-list"></span></p><h3 id="HazelcastComponent-UsageofList">Usage of List</h3><h4 id="HazelcastComponent-Listproducer&#8211;to(&#8220;hazelcast:list:foo&#8221;)">List producer &#8211; to(&#8220;hazelcast:list:foo&#8221;)</h4><p>The list producer provides 4 operations (add, addAll, set, get, removevalue, removeAll, clear).</p><h5 id="HazelcastComponent-Sampleforadd:.1">Sample for <strong>add</strong>:</h5><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:add")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:add&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.LIST_PREFIX);
+]]></script>
 </div></div><h5 id="HazelcastComponent-Sampleforget:.2">Sample for <strong>get</strong>:</h5><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:get")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:get&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX)
-.to("seda:out");
-</pre>
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.LIST_PREFIX)
+.to(&quot;seda:out&quot;);
+]]></script>
 </div></div><h5 id="HazelcastComponent-Sampleforsetvalue:">Sample for <strong>setvalue</strong>:</h5><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:set")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:set&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.SETVALUE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.LIST_PREFIX);
+]]></script>
 </div></div><h5 id="HazelcastComponent-Sampleforremovevalue:.2">Sample for <strong>removevalue</strong>:</h5><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:removevalue")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:removevalue&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sbar&quot;, HazelcastConstants.LIST_PREFIX);
+]]></script>
 </div></div><p>Note that&#160;<strong>CamelHazelcastObjectIndex</strong> header is used for indexing purpose.</p><h4 id="HazelcastComponent-Thelistconsumerprovides2operations(add,remove).Listconsumer&#8211;from(&#8220;hazelcast:list:foo&#8221;)"><span style="line-height: 1.4285715;">The list consumer provides 2 operations (add, remove).</span>List consumer &#8211; from(&#8220;hazelcast:list:foo&#8221;)</h4><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">fromF("hazelcast:%smm", HazelcastConstants.LIST_PREFIX)
-	.log("object...")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[fromF(&quot;hazelcast:%smm&quot;, HazelcastConstants.LIST_PREFIX)
+	.log(&quot;object...&quot;)
 	.choice()
 		.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
-			.log("...added")
-                        .to("mock:added")
+			.log(&quot;...added&quot;)
+                        .to(&quot;mock:added&quot;)
 		.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
-			.log("...removed")
-                        .to("mock:removed")
+			.log(&quot;...removed&quot;)
+                        .to(&quot;mock:removed&quot;)
                 .otherwise()
-                        .log("fail!");
-</pre>
+                        .log(&quot;fail!&quot;);
+]]></script>
 </div></div><p><span class="confluence-anchor-link" id="HazelcastComponent-seda"></span></p><h3 id="HazelcastComponent-UsageofSEDA">Usage of SEDA</h3><p>SEDA component differs from the rest components provided. It implements a work-queue in order to support asynchronous SEDA architectures, similar to the core "SEDA" component.</p><h4 id="HazelcastComponent-SEDAproducer&#8211;to(&#8220;hazelcast:seda:foo&#8221;)">SEDA producer &#8211; to(&#8220;hazelcast:seda:foo&#8221;)</h4><p>The SEDA producer provides no operations. You only send data to the specified queue.</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>default value</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>transferExchange</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p
 ><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.8.0:</strong> if set to true the whole Exchange will be transfered. If header or body contains not serializable objects, they will be skipped.</p></td></tr></tbody></table></div><p>Java DSL :</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:foo")
-.to("hazelcast:seda:foo");
-</pre>
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:foo&quot;)
+.to(&quot;hazelcast:seda:foo&quot;);
+]]></script>
 </div></div><p>Spring DSL :</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-   &lt;from uri="direct:start" /&gt;
-   &lt;to uri="hazelcast:seda:foo" /&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+   &lt;from uri=&quot;direct:start&quot; /&gt;
+   &lt;to uri=&quot;hazelcast:seda:foo&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><h4 id="HazelcastComponent-SEDAconsumer&#8211;from(&#8220;hazelcast:seda:foo&#8221;)">SEDA consumer &#8211; from(&#8220;hazelcast:seda:foo&#8221;)</h4><p>The SEDA consumer provides no operations. You only retrieve data from the specified queue.</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>default value</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>pollInterval</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>1000</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><span>The timeout used when consuming from the SEDA queue. </span><span style="color: rgb(0,0,0);">When a timeout occurs, the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to re
 act more quickly upon shutdown. (<strong>deprecated</strong> from Camel 2.15 onwards, use pollTimeout instead).</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>pollTimeout</code></td><td colspan="1" rowspan="1" class="confluenceTd">1000</td><td colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.15:</strong> The timeout used when consuming from the SEDA queue. <span style="color: rgb(0,0,0);">When a timeout occurs, the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown.</span></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>concurrentConsumers</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>1</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>To use concurrent consumers polling from the SEDA queue.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>transferExchange</cod
 e></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.8.0:</strong> if set to true the whole Exchange will be transfered. If header or body contains not serializable objects, they will be skipped.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>transacted</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10.4:</strong> if set to true then the consumer runs in transaction mode, where the messages in the seda queue will only be removed if the transaction commits, which happens when the processing is complete.</p></td></tr></tbody></table></div><p>Java DSL :</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("hazelcast:seda:foo")
-.to("mock:result");
-</pre>
-</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-  &lt;from uri="hazelcast:seda:foo" /&gt;
-  &lt;to uri="mock:result" /&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;hazelcast:seda:foo&quot;)
+.to(&quot;mock:result&quot;);
+]]></script>
+</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+  &lt;from uri=&quot;hazelcast:seda:foo&quot; /&gt;
+  &lt;to uri=&quot;mock:result&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><p><span class="confluence-anchor-link" id="HazelcastComponent-atomicnumber"></span></p><h3 id="HazelcastComponent-UsageofAtomicNumber">Usage of Atomic Number</h3><div class="confluence-information-macro confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>There is no consumer for this endpoint!</p></div></div><h4 id="HazelcastComponent-atomicnumberproducer-to(&quot;hazelcast:atomicnumber:foo&quot;)">atomic number producer - to("hazelcast:atomicnumber:foo")</h4><p>An atomic number is an object that simply provides a grid wide number (long). The operations for this producer are setvalue (set the number with a given value), get, increase (+1), decrease (-1) and destroy.</p><p>Header Variables for the request message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</
 p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.operation.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: setvalue, get, increase, decrease, destroy</p></td></tr></tbody></table></div><div class="confluence-information-macro confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>Header variables have changed in Camel 2.8</p></div></div><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="co
 nfluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastOperationType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: setvalue, get, increase, decrease, destroy <strong>Available as of Camel version 2.8</strong></p></td></tr></tbody></table></div><h5 id="HazelcastComponent-Sampleforset:">Sample for <strong>set</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:set")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:set&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.SETVALUE_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sfoo&quot;, HazelcastConstants.ATOMICNUMBER_PREFIX);
+]]></script>
 </div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:set" /&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:set&quot; /&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;setvalue&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:atomicvalue:foo" /&gt;
+	&lt;to uri=&quot;hazelcast:atomicvalue:foo&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><p>Provide the value to set inside the message body (here the value is 10): <code>template.sendBody("direct:set", 10);</code></p><h5 id="HazelcastComponent-Sampleforget:.3">Sample for <strong>get</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:get")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:get&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sfoo&quot;, HazelcastConstants.ATOMICNUMBER_PREFIX);
+]]></script>
 </div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:get" /&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:get&quot; /&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;get&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:atomicvalue:foo" /&gt;
+	&lt;to uri=&quot;hazelcast:atomicvalue:foo&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><p>You can get the number with <code>long body = template.requestBody("direct:get", null, Long.class);</code>.</p><h5 id="HazelcastComponent-Sampleforincrement:">Sample for <strong>increment</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:increment")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:increment&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.INCREMENT_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sfoo&quot;, HazelcastConstants.ATOMICNUMBER_PREFIX);
+]]></script>
 </div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:increment" /&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:increment&quot; /&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;increment&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:atomicvalue:foo" /&gt;
+	&lt;to uri=&quot;hazelcast:atomicvalue:foo&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><p>The actual value (after increment) will be provided inside the message body.</p><h5 id="HazelcastComponent-Samplefordecrement:">Sample for <strong>decrement</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:decrement")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:decrement&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DECREMENT_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sfoo&quot;, HazelcastConstants.ATOMICNUMBER_PREFIX);
+]]></script>
 </div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:decrement" /&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:decrement&quot; /&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;decrement&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:atomicvalue:foo" /&gt;
+	&lt;to uri=&quot;hazelcast:atomicvalue:foo&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><p>The actual value (after decrement) will be provided inside the message body.</p><h5 id="HazelcastComponent-Samplefordestroy">Sample for <strong>destroy</strong></h5><div class="confluence-information-macro confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>There's a bug inside Hazelcast. So this feature may not work properly. Will be fixed in 1.9.3.</p></div></div><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">from("direct:destroy")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;direct:destroy&quot;)
 .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DESTROY_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
-</pre>
+.toF(&quot;hazelcast:%sfoo&quot;, HazelcastConstants.ATOMICNUMBER_PREFIX);
+]]></script>
 </div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;route&gt;
-	&lt;from uri="direct:destroy" /&gt;
-        &lt;!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --&gt;
-	&lt;setHeader headerName="hazelcast.operation.type"&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+	&lt;from uri=&quot;direct:destroy&quot; /&gt;
+        &lt;!-- If using version 2.8 and above set headerName to &quot;CamelHazelcastOperationType&quot; --&gt;
+	&lt;setHeader headerName=&quot;hazelcast.operation.type&quot;&gt;
 		&lt;constant&gt;destroy&lt;/constant&gt;
 	&lt;/setHeader&gt;
-	&lt;to uri="hazelcast:atomicvalue:foo" /&gt;
+	&lt;to uri=&quot;hazelcast:atomicvalue:foo&quot; /&gt;
 &lt;/route&gt;
-</pre>
+]]></script>
 </div></div><p><span class="confluence-anchor-link" id="HazelcastComponent-cluster"></span></p><h3 id="HazelcastComponent-clustersupport">cluster support</h3><div class="confluence-information-macro confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>This endpoint provides no producer!</p></div></div><h3 id="HazelcastComponent-instanceconsumer-from(&quot;hazelcast:instance:foo&quot;)">instance consumer - from("hazelcast:instance:foo")</h3><p>Hazelcast makes sense in one single "server node", but it's extremly powerful in a clustered environment. The instance consumer fires if a new cache instance will join or leave the cluster.</p><p>Here's a sample:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">fromF("hazelcast:%sfoo", HazelcastConstants.INSTANCE_PREFIX)
-.log("instance...")
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[fromF(&quot;hazelcast:%sfoo&quot;, HazelcastConstants.INSTANCE_PREFIX)
+.log(&quot;instance...&quot;)
 .choice()
 	.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
-		.log("...added")
-		.to("mock:added")
+		.log(&quot;...added&quot;)
+		.to(&quot;mock:added&quot;)
 	.otherwise()
-		.log("...removed")
-		.to("mock:removed");
-</pre>
+		.log(&quot;...removed&quot;)
+		.to(&quot;mock:removed&quot;);
+]]></script>
 </div></div><p>Each event provides the following information inside the message header:</p><p>Header Variables inside the response message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.time</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "instancelistener"</p></td></tr><tr><td colspan="
 1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.action</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> or <strong>removed</strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.instance.host</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>host name of the instance</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.instance.port</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Integer</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>port number of the instance</p></td></tr></tbody></table></div><div class="confluence-information-macro confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconf
 ont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>Header variables have changed in Camel 2.8</p></div></div><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerTime</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" 
 class="confluenceTd"><p>the map consumer sets here "instancelistener" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerActionn</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> or <strong>removed</strong>. <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstanceHost</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>host name of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstanc
 ePort</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Integer</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>port number of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div><h3 id="HazelcastComponent-Usinghazelcastreference"><span style="line-height: 1.5625;">Using hazelcast reference</span></h3><h4 id="HazelcastComponent-Byitsname">By its name</h4><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: xml; gutter: false; theme: Default" style="font-size:12px;">&lt;bean id="hazelcastLifecycle" class="com.hazelcast.core.LifecycleService"
-      factory-bean="hazelcastInstance" factory-method="getLifecycleService"
-      destroy-method="shutdown" /&gt;
+<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;bean id=&quot;hazelcastLifecycle&quot; class=&quot;com.hazelcast.core.LifecycleService&quot;
+      factory-bean=&quot;hazelcastInstance&quot; factory-method=&quot;getLifecycleService&quot;
+      destroy-method=&quot;shutdown&quot; /&gt;
 
-&lt;bean id="config" class="com.hazelcast.config.Config"&gt;
-    &lt;constructor-arg type="java.lang.String" value="HZ.INSTANCE" /&gt;
+&lt;bean id=&quot;config&quot; class=&quot;com.hazelcast.config.Config&quot;&gt;
+    &lt;constructor-arg type=&quot;java.lang.String&quot; value=&quot;HZ.INSTANCE&quot; /&gt;
 &lt;/bean&gt;
 
-&lt;bean id="hazelcastInstance" class="com.hazelcast.core.Hazelcast" factory-method="newHazelcastInstance"&gt;
-    &lt;constructor-arg type="com.hazelcast.config.Config" ref="config"/&gt;
+&lt;bean id=&quot;hazelcastInstance&quot; class=&quot;com.hazelcast.core.Hazelcast&quot; factory-method=&quot;newHazelcastInstance&quot;&gt;
+    &lt;constructor-arg type=&quot;com.hazelcast.config.Config&quot; ref=&quot;config&quot;/&gt;
 &lt;/bean&gt;
-&lt;camelContext xmlns="http://camel.apache.org/schema/spring"&gt;
-    &lt;route id="testHazelcastInstanceBeanRefPut"&gt;
-        &lt;from uri="direct:testHazelcastInstanceBeanRefPut"/&gt;
-        &lt;setHeader headerName="CamelHazelcastOperationType"&gt;
+&lt;camelContext xmlns=&quot;http://camel.apache.org/schema/spring&quot;&gt;
+    &lt;route id=&quot;testHazelcastInstanceBeanRefPut&quot;&gt;
+        &lt;from uri=&quot;direct:testHazelcastInstanceBeanRefPut&quot;/&gt;
+        &lt;setHeader headerName=&quot;CamelHazelcastOperationType&quot;&gt;
             &lt;constant&gt;put&lt;/constant&gt;
         &lt;/setHeader&gt;
-        &lt;to uri="hazelcast:map:testmap?hazelcastInstanceName=HZ.INSTANCE"/&gt;
+        &lt;to uri=&quot;hazelcast:map:testmap?hazelcastInstanceName=HZ.INSTANCE&quot;/&gt;
     &lt;/route&gt;
 
-    &lt;route id="testHazelcastInstanceBeanRefGet"&gt;
-        &lt;from uri="direct:testHazelcastInstanceBeanRefGet" /&gt;
-        &lt;setHeader headerName="CamelHazelcastOperationType"&gt;
+    &lt;route id=&quot;testHazelcastInstanceBeanRefGet&quot;&gt;
+        &lt;from uri=&quot;direct:testHazelcastInstanceBeanRefGet&quot; /&gt;
+        &lt;setHeader headerName=&quot;CamelHazelcastOperationType&quot;&gt;
             &lt;constant&gt;get&lt;/constant&gt;
         &lt;/setHeader&gt;
-        &lt;to uri="hazelcast:map:testmap?hazelcastInstanceName=HZ.INSTANCE"/&gt;
-        &lt;to uri="seda:out" /&gt;
+        &lt;to uri=&quot;hazelcast:map:testmap?hazelcastInstanceName=HZ.INSTANCE&quot;/&gt;
+        &lt;to uri=&quot;seda:out&quot; /&gt;
     &lt;/route&gt;
-&lt;/camelContext&gt;</pre>
+&lt;/camelContext&gt;]]></script>
 </div></div><h4 id="HazelcastComponent-Byinstance">By instance</h4><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">

[... 246 lines stripped ...]