public static interface Threads.ThreadListener
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onThreadGroupCreated(ThreadGroup group,
String name) |
void |
onThreadPoolCreated(ExecutorService pool,
String pattern)
Triggered when a thread pool (ExecutorService) has been created.
|
void |
onThreadStarting(Thread thread,
String name)
Triggered when a thread is starting.
|
void |
onThreadStopping(Thread thread,
String name) |
boolean |
onUncaughtException(Thread thread,
Throwable e)
Triggered when an uncaught exception thrown from within a thread.
|
void onThreadGroupCreated(ThreadGroup group, String name)
void onThreadPoolCreated(ExecutorService pool, String pattern)
pool - thread poolpattern - thread pool name patternvoid onThreadStarting(Thread thread, String name)
thread - thread which is startingname - thread nameboolean onUncaughtException(Thread thread, Throwable e)
thread - thread which has an uncaught exception throwne - the exception uncaughtCopyright © 2022. All rights reserved.