Class ResetableClock

java.lang.Object
org.apache.camel.support.ResetableClock
All Implemented Interfaces:
org.apache.camel.clock.Clock

public final class ResetableClock extends Object implements org.apache.camel.clock.Clock
A clock that can be reset.
  • Constructor Details

    • ResetableClock

      public ResetableClock(org.apache.camel.clock.Clock clock)
    • ResetableClock

      public ResetableClock()
  • Method Details

    • elapsed

      public long elapsed()
      Specified by:
      elapsed in interface org.apache.camel.clock.Clock
    • getCreated

      public long getCreated()
      Specified by:
      getCreated in interface org.apache.camel.clock.Clock
    • reset

      public void reset()
      Reset the clock to the current point in time