On December 11, 2014 at 12:55:03 AM, yogu13 (yogesh....@synechron.com) wrote:
>  
> Hi,
>  
> We need to do throttling based on id which is received as part of the
> request but what I see that the default implementation of
> org.apache.camel.impl.ThrottlingInflightRoutePolicy is based on predefined
> rule set in the xml, there was a request raised sometime back for a more
> dynamic implementation but looks like nothing has happened on this...
> wondering if an implementation like below can be desired.
>  
> Two implementations to be a made available as part of camel
>  
> 1. the existing implementation based on the rule set defined in xml
> 2. camel to provide an interface having a method boolean
> processRequest(Exchange) .. user implements this interface .. the return of
> this method is used to obtain a lock…


What kind of lock do you want to use?
Using lock could introduce some performance issue.

Maybe we can take the Asynchronous delaying[1] as an example not to block the 
calling thread.

[1]http://camel.apache.org/delayer.html#Delayer-Asynchronousdelaying


>  
> Let me know the thoughts so i can update this JIRA @
> https://issues.apache.org/jira/browse/CAMEL-5599
>  
> Regards,
> -Yogesh
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Throttling-based-on-content-in-camel-tp5760505.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  

Reply via email to