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 2015/04/29 18:30:49 UTC

camel git commit: Component Camel-Infinispan docs

Repository: camel
Updated Branches:
  refs/heads/master 3724b0e12 -> 4b9701362


Component Camel-Infinispan docs


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

Branch: refs/heads/master
Commit: 4b9701362eb7bdbb025bb52e2ffe51e8b8d1008c
Parents: 3724b0e
Author: Andrea Cosentino <an...@gmail.com>
Authored: Wed Apr 29 18:29:39 2015 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Wed Apr 29 18:29:39 2015 +0200

----------------------------------------------------------------------
 .../infinispan/InfinispanConfiguration.java     | 22 ++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4b970136/components/camel-infinispan/src/main/java/org/apache/camel/component/infinispan/InfinispanConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-infinispan/src/main/java/org/apache/camel/component/infinispan/InfinispanConfiguration.java b/components/camel-infinispan/src/main/java/org/apache/camel/component/infinispan/InfinispanConfiguration.java
index 2bb8b8d..5841a8d 100644
--- a/components/camel-infinispan/src/main/java/org/apache/camel/component/infinispan/InfinispanConfiguration.java
+++ b/components/camel-infinispan/src/main/java/org/apache/camel/component/infinispan/InfinispanConfiguration.java
@@ -33,10 +33,12 @@ public class InfinispanConfiguration {
     private String host;
     @UriParam
     private String cacheName;
-    @UriParam
+    @UriParam(label = "producer", enums = "put,putAll,putIfAbsent,putAsync,putAllAsync,putIfAbsentAsync,get,containsKey,containsValue,remove,removeAsync," 
+           + "replace,replaceAsync,clear,size")
     private String command;
-    @UriParam(defaultValue = "true")
+    @UriParam(label = "consumer", defaultValue = "true")
     private boolean sync = true;
+    @UriParam(label = "consumer")
     private Set<String> eventTypes;
 
     public String getCommand() {
@@ -47,6 +49,9 @@ public class InfinispanConfiguration {
         this.command = command;
     }
 
+    /**
+     * Specifies the host of the cache on Infinispan instance
+     */
     public String getHost() {
         return host;
     }
@@ -55,6 +60,9 @@ public class InfinispanConfiguration {
         this.host = host;
     }
 
+    /**
+     * Specifies the cache Container to connect
+     */   
     public BasicCacheContainer getCacheContainer() {
         return cacheContainer;
     }
@@ -63,6 +71,10 @@ public class InfinispanConfiguration {
         this.cacheContainer = cacheContainer;
     }
 
+
+    /**
+     * Specifies the cache name
+     */  
     public String getCacheName() {
         return cacheName;
     }
@@ -71,6 +83,9 @@ public class InfinispanConfiguration {
         this.cacheName = cacheName;
     }
 
+    /**
+    * If true, the consumer will receive notifications synchronously
+    */
     public boolean isSync() {
         return sync;
     }
@@ -79,6 +94,9 @@ public class InfinispanConfiguration {
         this.sync = sync;
     }
 
+    /**
+    * Specifies the set of event types to register by the consumer 
+    */
     public Set<String> getEventTypes() {
         return eventTypes;
     }