com.atlassian.jira.util
Class PeriodicClock

java.lang.Object
  extended by com.atlassian.jira.util.PeriodicClock
All Implemented Interfaces:
com.atlassian.core.util.Clock

public class PeriodicClock
extends Object
implements com.atlassian.core.util.Clock

A Clock implementation that periodically increments the returned value.

Since:
v4.3

Constructor Summary
PeriodicClock(long increment)
           
PeriodicClock(long increment, int periodLength)
           
PeriodicClock(long intitialValue, long increment, int periodLength)
           
 
Method Summary
 Date getCurrentDate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeriodicClock

public PeriodicClock(long intitialValue,
                     long increment,
                     int periodLength)

PeriodicClock

public PeriodicClock(long increment,
                     int periodLength)

PeriodicClock

public PeriodicClock(long increment)
Method Detail

getCurrentDate

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.