public final class ThreadUtils
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
ThreadUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
silentSleep(long milliseconds)
Just suspend the current thread for defined interval in milliseconds.
|
static int |
stackDepth()
Get the stack call depth for the caller.
|
static java.lang.StackTraceElement |
stackElement()
Get the stack element of the method caller.
|
@Weight(value=VARIABLE) public static boolean silentSleep(long milliseconds)
milliseconds - milliseconds to sleepThread.sleep(long)@Weight(value=VARIABLE) public static java.lang.StackTraceElement stackElement()