Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
- is blocked by
-
CAMEL-20224 Deprecate milliseconds-based input from StopWatch
- Resolved
-
CAMEL-20257 camel-core: convert AbstractContext to the clock API
- Resolved
- relates to
-
CAMEL-20255 camel-core: remove deprecated timestamp-based methods
- Resolved
- links to