camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <>
Subject [jira] Commented: (CAMEL-64) Camel DSL should use verbs for it's EIP actions.
Date Fri, 14 Nov 2008 02:55:05 GMT


Willem Jiang commented on CAMEL-64:

Here is the java doc for the splitter method in ProcessorType
     * Creates the <a
     * href="">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);
        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"
      <from uri="seda:a" />
      <throttler maximumRequestsPerPeriod="3" timePeriodMillis="30000">
        <to uri="mock:result" />

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
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:
>             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.

View raw message