camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [1/3] camel git commit: added method to check for key existence
Date Tue, 11 Oct 2016 08:00:48 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.18.x 20cf933ed -> 9916ee431


added method to check for key existence


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

Branch: refs/heads/camel-2.18.x
Commit: ac002c88d28faec0b59d52a8b2427c23f1540a5a
Parents: 20cf933
Author: Michael Lück <michael.lueck@hm-ag.de>
Authored: Tue Oct 4 11:18:04 2016 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Tue Oct 11 09:59:24 2016 +0200

----------------------------------------------------------------------
 .../aggregate/hazelcast/HazelcastAggregationRepository.java | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/ac002c88/components/camel-hazelcast/src/main/java/org/apache/camel/processor/aggregate/hazelcast/HazelcastAggregationRepository.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/processor/aggregate/hazelcast/HazelcastAggregationRepository.java
b/components/camel-hazelcast/src/main/java/org/apache/camel/processor/aggregate/hazelcast/HazelcastAggregationRepository.java
index 530bd8c..33185f0 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/processor/aggregate/hazelcast/HazelcastAggregationRepository.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/processor/aggregate/hazelcast/HazelcastAggregationRepository.java
@@ -290,6 +290,15 @@ public class HazelcastAggregationRepository extends ServiceSupport
         return unmarshallExchange(camelContext, cache.get(key));
     }
     
+    /**
+     * Checks if the key in question is in the repository.
+     * 
+     * @param key Object - key in question
+     */
+    public boolean containsKey(Object key){
+        return cache.containsKey(key);
+    }
+    
     public boolean isAllowSerializedHeaders() {
         return allowSerializedHeaders;
     }


Mime
View raw message