|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers
Emulation of some new functionality present in java.lang.Thread in J2SE 5.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 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |