edu.emory.mathcs.backport.java.util.concurrent.helpers
public class ThreadHelpers extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ThreadHelpers.UncaughtExceptionHandler
Abstraction of the exception handler which receives notifications of
exceptions occurred possibly in various parts of the system.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Runnable |
assignExceptionHandler(java.lang.Runnable runnable,
ThreadHelpers.UncaughtExceptionHandler handler)
Returns wrapped runnable that ensures that if an exception occurs
during the execution, the specified exception handler is invoked.
|
public static java.lang.Runnable assignExceptionHandler(java.lang.Runnable runnable, ThreadHelpers.UncaughtExceptionHandler handler)
runnable
- runnable for which exceptions are to be interceptedhandler
- the exception handler to call when exception occurs
during execution of the given runnable