Repository: camel Updated Branches: refs/heads/master 0b5c2980d -> 473942a4f
Polished. Java api for throttler use long instead of Long so we avoid having to do ugly 10000L in the code. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/473942a4 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/473942a4 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/473942a4 Branch: refs/heads/master Commit: 473942a4f0f99fcb12750325ebee327c91bc4972 Parents: 0b5c298 Author: Claus Ibsen <davscl...@apache.org> Authored: Sun Sep 27 12:36:06 2015 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sun Sep 27 16:36:27 2015 +0200 ---------------------------------------------------------------------- .../src/main/java/org/apache/camel/model/ThrottleDefinition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/473942a4/camel-core/src/main/java/org/apache/camel/model/ThrottleDefinition.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/model/ThrottleDefinition.java b/camel-core/src/main/java/org/apache/camel/model/ThrottleDefinition.java index 022adcb..48d2a02 100644 --- a/camel-core/src/main/java/org/apache/camel/model/ThrottleDefinition.java +++ b/camel-core/src/main/java/org/apache/camel/model/ThrottleDefinition.java @@ -134,7 +134,7 @@ public class ThrottleDefinition extends ExpressionNode implements ExecutorServic * @param maximumRequestsPerPeriod the maximum request count number per time period * @return the builder */ - public ThrottleDefinition maximumRequestsPerPeriod(Long maximumRequestsPerPeriod) { + public ThrottleDefinition maximumRequestsPerPeriod(long maximumRequestsPerPeriod) { setExpression(ExpressionNodeHelper.toExpressionDefinition(ExpressionBuilder.constantExpression(maximumRequestsPerPeriod))); return this; }