Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-4514

Add Route shutdown callback to RoutePolicy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0
    • camel-core
    • None
    • Unknown

    Description

      RoutePolicy currently supports the following callbacks as of 2.8.x:

      onExchangeBegin(Route route, Exchange exchange)
      onExchangeDone(Route route, Exchange exchange)
      onInit(Route route)

      If Routes have any cleanup tasks that need to be associated with the removal of a Route from a CamelContext, an onRemove(Route route) callback would be very helpful and it seems that RoutePolicy is the appropriate place to add this capability.

      Attachments

        1. onRemove.diff
          5 kB
          Bilgin Ismet Ibryam

        Issue Links

          Activity

            People

              bibryam Bilgin Ismet Ibryam
              uva_jeff Jeff Segal
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: