public final class SysUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
closeIgnoringExceptions(java.lang.AutoCloseable closeable)
Close a closable ignoring any exceptions.
|
static int |
getFreePort()
Get available port.
|
static void |
sleep(long millis)
Causes the currently executing thread to sleep (temporarily cease
execution) for the specified number of milliseconds, subject to
the precision and accuracy of system timers and schedulers.
|
public static void sleep(long millis)
millis
- the length of time to sleep in millisecondsjava.lang.IllegalArgumentException
- if the value of millis
is negativepublic static int getFreePort()
public static void closeIgnoringExceptions(java.lang.AutoCloseable closeable)
closeable
- source or destination of data can be closed