com.autonomy.utilities
Class Sleeper
java.lang.Object
|
+--com.autonomy.utilities.Sleeper
- public class Sleeper
- extends java.lang.Object
Constructor Summary |
Sleeper(long lInterval)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Sleeper
public Sleeper(long lInterval)
start
public void start()
sleepIfNecessary
public boolean sleepIfNecessary()
- Returns:
- true if some time was spent sleeping
sleep
public boolean sleep(long lSleepTime)
- Returns:
- true if sleep no InterruptedException was thrown during sleep
getLastInvocationTime
public long getLastInvocationTime()
setInterval
public void setInterval(long nInterval)
getInterval
public long getInterval()
getLastAmountSlept
public long getLastAmountSlept()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object