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