[
https://issues.apache.org/activemq/browse/CAMEL-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47365#action_47365
]
Willem Jiang commented on CAMEL-64:
-----------------------------------
Here is the java doc for the splitter method in ProcessorType
/**
* Creates the <a
* href="http://activemq.apache.org/camel/delayer.html">Delayer</a> pattern
* where an expression is used to calculate the time which the message will
* be dispatched on
*
* @return the builder
*/
public ThrottlerType throttler(long maximumRequestCount) {
ThrottlerType answer = new ThrottlerType(maximumRequestCount);
addOutput(answer);
return answer;
}
we could think the throtter method as the ThrotterType creating method,
and it is same with the Spring configuration such as
<camelContext id="camel"
xmlns="http://activemq.apache.org/camel/schema/spring">
<route>
<from uri="seda:a" />
<throttler maximumRequestsPerPeriod="3" timePeriodMillis="30000">
<to uri="mock:result" />
</throttler>
</route>
</camelContext>
In this way we could just think to put a throttler in the middle of router
rule, if your are using the GUI to write the rule , you just drop a box which
name is throttler in the rule digraph.
If the EPI action is named with noun, it will make the Spring DSL , even the
Camel GUI more consistent with the Java DSL.
> Camel DSL should use verbs for it's EIP actions.
> -------------------------------------------------
>
> Key: CAMEL-64
> URL: https://issues.apache.org/activemq/browse/CAMEL-64
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Hiram Chirino
> Assignee: Willem Jiang
> Fix For: 2.0.0
>
>
> For example splitter() should be split() and resequencer should be resequence.
> Old methods should be deprecated.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.