Package com.nt.udc.util
Class FixedRateTimer
java.lang.Object
com.nt.udc.util.FixedRateTimer
Title: FixedRateTimer
Description: Sleeps until the beginning of a new time interval defined
by its sleepTime setting
Copyright: Copyright (c) 2001
Company: Nortel Networks
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
void
setFixedRate
(long rate) void
Determines the current thread to sleep until the beginning of a new time interval defined by the fixed rate.
-
Field Details
-
m_fixedRate
protected long m_fixedRate
-
-
Constructor Details
-
FixedRateTimer
public FixedRateTimer() -
FixedRateTimer
public FixedRateTimer(long rate)
-
-
Method Details
-
getFixedRate
public long getFixedRate() -
setFixedRate
public void setFixedRate(long rate) -
sleepUntilNextInterval
public void sleepUntilNextInterval()Determines the current thread to sleep until the beginning of a new time interval defined by the fixed rate.
-