Repository: camel Updated Branches: refs/heads/feature/camel-hystrix 07f38b3b2 -> d8fc17c74
CAMEL-9098 camel-hystrix (WIP): Rename suppressFallbackForExceptions in DSL. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/edc0ba81 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/edc0ba81 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/edc0ba81 Branch: refs/heads/feature/camel-hystrix Commit: edc0ba81842fa8ce37db8ed84a092744213362bf Parents: 07f38b3 Author: Raul Kripalani <[email protected]> Authored: Thu Aug 27 13:24:23 2015 +0100 Committer: Raul Kripalani <[email protected]> Committed: Thu Aug 27 13:24:23 2015 +0100 ---------------------------------------------------------------------- .../camel/component/hystrix/HystrixDelegateEndpoint.java | 8 -------- .../camel/component/hystrix/builders/HystrixWrappers.java | 2 +- .../apache/camel/component/hystrix/HystrixProcessorTest.java | 4 ++-- 3 files changed, 3 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/edc0ba81/components/camel-hystrix/src/main/java/org/apache/camel/component/hystrix/HystrixDelegateEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-hystrix/src/main/java/org/apache/camel/component/hystrix/HystrixDelegateEndpoint.java b/components/camel-hystrix/src/main/java/org/apache/camel/component/hystrix/HystrixDelegateEndpoint.java index d139172..c365167 100644 --- a/components/camel-hystrix/src/main/java/org/apache/camel/component/hystrix/HystrixDelegateEndpoint.java +++ b/components/camel-hystrix/src/main/java/org/apache/camel/component/hystrix/HystrixDelegateEndpoint.java @@ -74,18 +74,10 @@ public class HystrixDelegateEndpoint extends DefaultEndpoint { return target; } - public void setTarget(Endpoint target) { - this.target = target; - } - public Producer getProducer() { return producer; } - public void setProducer(Producer producer) { - this.producer = producer; - } - public HystrixConfiguration getConfiguration() { return configuration; } http://git-wip-us.apache.org/repos/asf/camel/blob/edc0ba81/components/camel-hystrix/src/main/java/org/apache/camel/component/hystrix/builders/HystrixWrappers.java ---------------------------------------------------------------------- diff --git a/components/camel-hystrix/src/main/java/org/apache/camel/component/hystrix/builders/HystrixWrappers.java b/components/camel-hystrix/src/main/java/org/apache/camel/component/hystrix/builders/HystrixWrappers.java index 493f731..d3624c2 100644 --- a/components/camel-hystrix/src/main/java/org/apache/camel/component/hystrix/builders/HystrixWrappers.java +++ b/components/camel-hystrix/src/main/java/org/apache/camel/component/hystrix/builders/HystrixWrappers.java @@ -98,7 +98,7 @@ public final class HystrixWrappers { return thisBuilder(); } - public T withSuppressedExceptions(Class<? extends Throwable>... throwables) { + public T suppressFallbackForExceptions(Class<? extends Throwable>... throwables) { Set<Class<? extends Throwable>> t = new HashSet<>(Arrays.asList(throwables)); configuration.setExceptionsSuppressingFallback(t); return thisBuilder(); http://git-wip-us.apache.org/repos/asf/camel/blob/edc0ba81/components/camel-hystrix/src/test/java/org/apache/camel/component/hystrix/HystrixProcessorTest.java ---------------------------------------------------------------------- diff --git a/components/camel-hystrix/src/test/java/org/apache/camel/component/hystrix/HystrixProcessorTest.java b/components/camel-hystrix/src/test/java/org/apache/camel/component/hystrix/HystrixProcessorTest.java index b3e6b9a..210fa14 100644 --- a/components/camel-hystrix/src/test/java/org/apache/camel/component/hystrix/HystrixProcessorTest.java +++ b/components/camel-hystrix/src/test/java/org/apache/camel/component/hystrix/HystrixProcessorTest.java @@ -90,7 +90,7 @@ public class HystrixProcessorTest extends AbstractHystrixTest { } }, setter) .withFallbackProcessor(fallback) - .withSuppressedExceptions(DummyException.class) + .suppressFallbackForExceptions(DummyException.class) .build(); ServiceHelper.startService(hystrixP); @@ -113,7 +113,7 @@ public class HystrixProcessorTest extends AbstractHystrixTest { } }, setter) .withFallbackProcessor(fallback) - .withSuppressedExceptions(DummyException.class) + .suppressFallbackForExceptions(DummyException.class) .build(); ServiceHelper.startService(hystrixP);
