cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cxf git commit: CXF-6622: Enhance Failover Feature to support Circuit Breakers based implementation. Fixing test failures.
Date Wed, 11 Nov 2015 02:05:23 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 173ec8971 -> f0e08b7be


CXF-6622: Enhance Failover Feature to support Circuit Breakers based implementation. Fixing
test failures.


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

Branch: refs/heads/master
Commit: f0e08b7bea2660542e18294d490e68c7b14aaa4b
Parents: 173ec89
Author: reta <drreta@gmail.com>
Authored: Tue Nov 10 21:04:55 2015 -0500
Committer: reta <drreta@gmail.com>
Committed: Tue Nov 10 21:04:55 2015 -0500

----------------------------------------------------------------------
 .../org/apache/cxf/clustering/CircuitBreakerTargetSelector.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/f0e08b7b/rt/features/clustering/src/main/java/org/apache/cxf/clustering/CircuitBreakerTargetSelector.java
----------------------------------------------------------------------
diff --git a/rt/features/clustering/src/main/java/org/apache/cxf/clustering/CircuitBreakerTargetSelector.java
b/rt/features/clustering/src/main/java/org/apache/cxf/clustering/CircuitBreakerTargetSelector.java
index 08c9fe6..86aabaa 100644
--- a/rt/features/clustering/src/main/java/org/apache/cxf/clustering/CircuitBreakerTargetSelector.java
+++ b/rt/features/clustering/src/main/java/org/apache/cxf/clustering/CircuitBreakerTargetSelector.java
@@ -20,10 +20,9 @@
 package org.apache.cxf.clustering;
 
 import java.util.ArrayList;
+import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.concurrent.ConcurrentHashMap;
-import java.util.concurrent.ConcurrentMap;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
@@ -45,7 +44,7 @@ public class CircuitBreakerTargetSelector extends FailoverTargetSelector
{
     
     private final int threshold;
     private final long timeout; 
-    private final ConcurrentMap<String, CircuitBreaker> circuits = new ConcurrentHashMap<>();
+    private final Map<String, CircuitBreaker> circuits = new LinkedHashMap<>();
     
     public CircuitBreakerTargetSelector(final int threshold, final long timeout) {
         super();


Mime
View raw message