You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Bilgin Ibryam (Updated) (JIRA)" <ji...@apache.org> on 2011/12/01 23:24:40 UTC
[jira] [Updated] (CAMEL-4715) Add Route start/stop/suspend/resume
callback to RoutePolicy
[ https://issues.apache.org/jira/browse/CAMEL-4715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bilgin Ibryam updated CAMEL-4715:
---------------------------------
Attachment: routePolicy.diff
While testing suspendRoute/resumeRoute callback, I noticed that resumeRoute is not called, because the route is first started and then not resumed.
I did a fix for it in DefaultCamelContext and cannot see any side effects, but a second look would be good.
> Add Route start/stop/suspend/resume callback to RoutePolicy
> -----------------------------------------------------------
>
> Key: CAMEL-4715
> URL: https://issues.apache.org/jira/browse/CAMEL-4715
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Bilgin Ibryam
> Priority: Minor
> Attachments: routePolicy.diff
>
>
> We have onInit, and onRemove callbacks on RoutePolicy.
> We should consider having the fine grained callbacks for start|stop|suspend|resume, so end users have callbacks, and can do any custom code they may need to react accordingly to the changed state of the route.
> This requires API changes in the RoutePolicy API, so we should not backport this.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira