Class CompositeClock

java.lang.Object
com.atlassian.jira.util.CompositeClock
All Implemented Interfaces:
com.atlassian.core.util.Clock

@Deprecated public class CompositeClock extends Object implements com.atlassian.core.util.Clock
Deprecated.
Use Clock instead
Composite clock that returns answer from one of the clocks it builds upon, depending on the number of times it was called already.
Since:
v4.3
  • Constructor Details

    • CompositeClock

      public CompositeClock(com.atlassian.core.util.Clock initialClock)
      Deprecated.
  • Method Details

    • addClock

      public CompositeClock addClock(int startFromCall, com.atlassian.core.util.Clock clock)
      Deprecated.
    • getCurrentDate

      public Date getCurrentDate()
      Deprecated.
      Specified by:
      getCurrentDate in interface com.atlassian.core.util.Clock