| Modifier and Type | Field and Description |
|---|---|
| private Handler | |
| private static final Logger | |
| public static final String | |
| private final Map | |
| private final Timer |
| Access | Constructor and Description |
|---|---|
| public | BlockedThreadChecker(long interval, TimeUnit intervalUnit, long warningExceptionTime, TimeUnit warningExceptionTimeUnit)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private static void | |
| public synchronized void | |
| public synchronized void | setThreadBlockedHandler(Handler<BlockedThreadEvent>
The handler to run handler)Specify the handler to run when it is determined a thread has been blocked for longer than allowed. |
| blockedThreadHandler | back to summary |
|---|---|
| private Handler<BlockedThreadEvent> blockedThreadHandler | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| LOGGER_NAME | back to summary |
|---|---|
| public static final String LOGGER_NAME | |
| threads | back to summary |
|---|---|
| private final Map<Thread, ThreadInfo> threads | |
| timer | back to summary |
|---|---|
| private final Timer timer | |
| BlockedThreadChecker | back to summary |
|---|---|
| public BlockedThreadChecker(long interval, TimeUnit intervalUnit, long warningExceptionTime, TimeUnit warningExceptionTimeUnit) | |
| close | back to summary |
|---|---|
| public void close() | |
| defaultBlockedThreadHandler | back to summary |
|---|---|
| private static void defaultBlockedThreadHandler(BlockedThreadEvent bte) | |
| registerThread | back to summary |
|---|---|
| public synchronized void registerThread(Thread thread, ThreadInfo checked) | |
| setThreadBlockedHandler | back to summary |
|---|---|
| public synchronized void setThreadBlockedHandler(Handler<BlockedThreadEvent> handler) Specify the handler to run when it is determined a thread has been blocked for longer than allowed. Note that the handler will be called on the blocked thread checker thread, not an event loop thread.
| |