You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2017/08/23 08:48:55 UTC

[3/3] camel git commit: CAMEL-11694 - Camel-Hazelcast: Add more operation to queue - Docs updated

CAMEL-11694 - Camel-Hazelcast: Add more operation to queue - Docs updated


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/efd7d375
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/efd7d375
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/efd7d375

Branch: refs/heads/master
Commit: efd7d3750d20f4a5a0e9c6054ca0995454c69170
Parents: a9f4c55
Author: Andrea Cosentino <an...@gmail.com>
Authored: Wed Aug 23 10:37:29 2017 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Wed Aug 23 10:37:29 2017 +0200

----------------------------------------------------------------------
 .../src/main/docs/hazelcast-queue-component.adoc  | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/efd7d375/components/camel-hazelcast/src/main/docs/hazelcast-queue-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast-queue-component.adoc b/components/camel-hazelcast/src/main/docs/hazelcast-queue-component.adoc
index 3389551..20a3bb4 100644
--- a/components/camel-hazelcast/src/main/docs/hazelcast-queue-component.adoc
+++ b/components/camel-hazelcast/src/main/docs/hazelcast-queue-component.adoc
@@ -70,6 +70,8 @@ The queue producer provides 10 operations:
 * remove all
 * remove if
 * drain to
+* take
+* retain all
 
 #### Sample for *add*:
 
@@ -157,6 +159,22 @@ from("direct:drainTo").setHeader(HazelcastConstants.OPERATION, constant(Hazelcas
 String.format("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX));
 --------------------------------------------------------------------------------------------
 
+#### Sample for *take*:
+
+[source,java]
+--------------------------------------------------------------------------------------------
+from("direct:take").setHeader(HazelcastConstants.OPERATION, constant(HazelcastOperation.TAKE)).to(
+String.format("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX));
+--------------------------------------------------------------------------------------------
+
+#### Sample for *retain all*:
+
+[source,java]
+--------------------------------------------------------------------------------------------
+from("direct:retainAll").setHeader(HazelcastConstants.OPERATION, constant(HazelcastOperation.RETAIN_ALL)).to(
+String.format("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX));
+--------------------------------------------------------------------------------------------
+
 ### Queue consumer – from(“hazelcast-queue:foo”)
 
 The queue consumer provides 2 operations: