[ 
https://issues.apache.org/jira/browse/CAMEL-2258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-2258.
--------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 3.0.0)
                   2.16.0
         Assignee: Claus Ibsen

There is a getProcessor api on context to do this

> Add nice lookup method for processors
> -------------------------------------
>
>                 Key: CAMEL-2258
>                 URL: https://issues.apache.org/jira/browse/CAMEL-2258
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 2.1.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.16.0
>
>
> Camel creates the processor at runtime based on the route definitions.
> What if you want to adjust a processor at runtime, such as a Throttler, 
> Delayer etc.
> What needs is something like
> {code}
> from(myEndpoint).throttle(200).id("myThrottler").to(myOtherEndpoint);
> {code}
> And the lookup
> {code}
> Throttler throttler = context.lookupProcessor("myThrottler", Throttler.class);
> throttler.setMaximumRequestsPerPeriod(500);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to