camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [3/3] camel git commit: CAMEL-11694 - Camel-Hazelcast: Add more operation to queue - Docs updated
Date Wed, 23 Aug 2017 08:48:55 GMT
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 <ancosen@gmail.com>
Authored: Wed Aug 23 10:37:29 2017 +0200
Committer: Andrea Cosentino <ancosen@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:


Mime
View raw message