public final class ThreadUtils extends Object
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 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 StackTraceElement stackElement()
Copyright © 2011–2020 Igor Maznitsa. All rights reserved.