backtype.storm.utils
Class Time
java.lang.Object
backtype.storm.utils.Time
public class Time
- extends Object
|
Field Summary |
static org.slf4j.Logger |
LOG
|
|
Constructor Summary |
Time()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static org.slf4j.Logger LOG
Time
public Time()
startSimulating
public static void startSimulating()
stopSimulating
public static void stopSimulating()
isSimulating
public static boolean isSimulating()
sleepUntil
public static void sleepUntil(long targetTimeMs)
throws InterruptedException
- Throws:
InterruptedException
sleep
public static void sleep(long ms)
throws InterruptedException
- Throws:
InterruptedException
currentTimeMillis
public static long currentTimeMillis()
currentTimeSecs
public static int currentTimeSecs()
advanceTime
public static void advanceTime(long ms)
isThreadWaiting
public static boolean isThreadWaiting(Thread t)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.