camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [5/5] git commit: CAMEL-6377: Optimized routing engine to reduce stack frames in use during routing. Work in progress.
Date Tue, 28 May 2013 09:36:45 GMT
CAMEL-6377: Optimized routing engine to reduce stack frames in use during routing. Work in
progress.


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

Branch: refs/heads/master
Commit: 13a454b27d55d11c6560b7ecf8a567e4768da827
Parents: 2ca003b
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Tue May 28 11:36:29 2013 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Tue May 28 11:36:29 2013 +0200

----------------------------------------------------------------------
 .../camel/processor/RedeliveryErrorHandler.java    |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/13a454b2/camel-core/src/main/java/org/apache/camel/processor/RedeliveryErrorHandler.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/processor/RedeliveryErrorHandler.java
b/camel-core/src/main/java/org/apache/camel/processor/RedeliveryErrorHandler.java
index 02b56a8..19acacb 100644
--- a/camel-core/src/main/java/org/apache/camel/processor/RedeliveryErrorHandler.java
+++ b/camel-core/src/main/java/org/apache/camel/processor/RedeliveryErrorHandler.java
@@ -269,14 +269,11 @@ public abstract class RedeliveryErrorHandler extends ErrorHandlerSupport
impleme
         AsyncProcessorHelper.process(this, exchange);
     }
 
-    public boolean process(Exchange exchange, final AsyncCallback callback) {
-        return processErrorHandler(exchange, callback, new RedeliveryData());
-    }
-
     /**
      * Process the exchange using redelivery error handling.
      */
-    protected boolean processErrorHandler(final Exchange exchange, final AsyncCallback callback,
final RedeliveryData data) {
+    public boolean process(final Exchange exchange, final AsyncCallback callback) {
+        final RedeliveryData data = new RedeliveryData();
 
         // do a defensive copy of the original Exchange, which is needed for redelivery so
we can ensure the
         // original Exchange is being redelivered, and not a mutated Exchange


Mime
View raw message