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

AsyncCallback API - Include Exchange if we do change the API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • 3.0.0, Future
    • camel-core
    • None
    • Unknown

    Description

      The AsyncCallback has a done method with only a boolean. If we had included the Exchange as well, then we could often obtain any needed information in the callback method from the exchange instead of having to refer to instances from the surrounding scope via final keywords.

      This also avoids creating a new object per call which, which then take up memory.

      void done(boolean syncDone, Exchange exchange)

      Attachments

        Activity

          People

            ramu11 Ramu
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: