You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bi...@apache.org on 2014/04/13 18:43:07 UTC

git commit: Added xml dsl test and cleaned up Circuit Breaker policy

Repository: camel
Updated Branches:
  refs/heads/master d7347cec8 -> 0b12b371c


Added xml dsl test and cleaned up Circuit Breaker policy


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

Branch: refs/heads/master
Commit: 0b12b371cd0bbddaef24739ceb3a582cc0844261
Parents: d7347ce
Author: Bilgin Ibryam <bi...@apache.org>
Authored: Sun Apr 13 17:42:55 2014 +0100
Committer: Bilgin Ibryam <bi...@apache.org>
Committed: Sun Apr 13 17:42:55 2014 +0100

----------------------------------------------------------------------
 .../routeWithCircuitBreakerLoadBalance.xml      | 28 ++++++++++++++++++++
 1 file changed, 28 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/0b12b371/camel-core/src/test/resources/org/apache/camel/model/routeWithCircuitBreakerLoadBalance.xml
----------------------------------------------------------------------
diff --git a/camel-core/src/test/resources/org/apache/camel/model/routeWithCircuitBreakerLoadBalance.xml b/camel-core/src/test/resources/org/apache/camel/model/routeWithCircuitBreakerLoadBalance.xml
new file mode 100644
index 0000000..40e4a9a
--- /dev/null
+++ b/camel-core/src/test/resources/org/apache/camel/model/routeWithCircuitBreakerLoadBalance.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+   
+    http://www.apache.org/licenses/LICENSE-2.0
+   
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
+    <route>
+        <from uri="direct:start"/>
+        <loadBalance>
+            <circuitBreaker threshold="2" halfOpenAfter="1000">
+                <exception>MyCustomException</exception>
+            </circuitBreaker>
+            <to uri="mock:result"/>
+        </loadBalance>
+    </route>
+</routes>