Package org.apache.camel.support
Class MonotonicClock
java.lang.Object
org.apache.camel.support.MonotonicClock
- All Implemented Interfaces:
org.apache.camel.clock.Clock
A clock that increases monotonically (i.e.: does not go back in time) for precise elapsed calculations.
-
Constructor Details
-
MonotonicClock
public MonotonicClock()
-
-
Method Details
-
elapsed
public long elapsed()- Specified by:
elapsed
in interfaceorg.apache.camel.clock.Clock
-
getCreated
public long getCreated()- Specified by:
getCreated
in interfaceorg.apache.camel.clock.Clock
-