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

camel-core: modernize management of duration and timestamps

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.4.0
    • camel-core
    • None
    • Unknown

    Description

      We have many places in the code where do perform logic that mixes operations between monotonic and real time clocks.

      For instance, we have instances with code like this:

      long elapsed = System.currentTimeMillis() - exchange.getCreated();
      

      The problem with this code is that it can provide incorrect data in some circumstances, because it computes the duration from a real time clock (which, for instance, can go back in time in some cases).

      We need to rework this to create interfaces for computing both duration as well as pointing the specific point in time in which it was created.

      Attachments

        Issue Links

          Activity

            People

              orpiske Otavio Rodolfo Piske
              orpiske Otavio Rodolfo Piske
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: