static void |
TimeGuard.addGuard(java.lang.String alertMessage,
long maxAllowedDelayInMilliseconds) |
Add a time watcher.
|
static void |
TimeGuard.addGuard(java.lang.String alertMessage,
long maxAllowedDelayInMilliseconds,
TimeGuard.TimeAlertListener timeAlertListener) |
Add a time watcher and provide processor of time violation.
|
static void |
TimeGuard.addPoint(java.lang.String timePointName,
TimeGuard.TimeAlertListener listener) |
Add a named time point.
|
static void |
TimeGuard.cancel() |
Cancel all time watchers and time points for the current stack level.
|
static void |
TimeGuard.cancelAll() |
Cancel all time watchers and time points globally for the current thread.
|
static void |
Deferrers.cancelAllDeferredActionsGlobally() |
Cancel all defer actions globally.
|
static void |
Deferrers.cancelDeferredActions() |
Cancel all defer actions for the current stack depth.
|
static void |
TimeGuard.check() |
Check all registered time watchers for time bound violations.
|
static void |
TimeGuard.checkPoint(java.lang.String timePointName) |
Check named time point(s).
|
static void |
TimeGuard.checkPoints() |
Process all time points for the current stack level.
|
static java.io.Closeable |
IOUtils.closeQuetly(java.io.Closeable closeable) |
Closing quetly any closeable object.
|
static Disposable |
Deferrers.defer(Disposable disposable) |
Defer execution of some disposable object.
|
static Deferrers.Deferred |
Deferrers.defer(Deferrers.Deferred deferred) |
Defer some action.
|
static java.lang.Runnable |
Deferrers.defer(java.lang.Runnable runnable) |
Defer execution of some runnable action.
|
static <T extends java.io.Closeable> T |
Deferrers.defer(T closeable) |
Defer closing of an closeable object.
|
static <T> T |
Deferrers.deferredClose(T closeable) |
Defer object containing public close() method.
|
static boolean |
Deferrers.isEmpty() |
Check that presented defer actions for the current thread.
|
static boolean |
TimeGuard.isEmpty() |
Check that the thread local for the current thread contains time points or watchers.
|
static <T> T[] |
ArrayUtils.joinArrays(T[]... arrays) |
Join arrays provided as parameters, all arrays must be the same type, null values allowed.
|
static byte[] |
IOUtils.packData(byte[] data) |
Pack some binary data.
|
static void |
Deferrers.processDeferredActions() |
Process all defer actions for the current stack depth level.
|
static boolean |
ThreadUtils.silentSleep(long milliseconds) |
Just suspend the current thread for defined interval in milliseconds.
|
static int |
ThreadUtils.stackDepth() |
Get the stack call depth for the caller.
|
static java.lang.StackTraceElement |
ThreadUtils.stackElement() |
Get the stack element of the method caller.
|
static byte[] |
IOUtils.unpackData(byte[] data) |
Unpack binary data packed by the packData method.
|