HttpHandlerpublic class StuckThreadDetectionHandler extends Object implements HttpHandler
| Modifier and Type | Class | Description |
|---|---|---|
static class |
StuckThreadDetectionHandler.Builder |
|
static class |
StuckThreadDetectionHandler.Wrapper |
| Modifier and Type | Field | Description |
|---|---|---|
static int |
DEFAULT_THRESHOLD |
| Constructor | Description |
|---|---|
StuckThreadDetectionHandler(int threshold,
HttpHandler next) |
|
StuckThreadDetectionHandler(HttpHandler next) |
| Modifier and Type | Method | Description |
|---|---|---|
long[] |
getStuckThreadIds() |
|
int |
getThreshold() |
|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
public static final int DEFAULT_THRESHOLD
public StuckThreadDetectionHandler(HttpHandler next)
public StuckThreadDetectionHandler(int threshold,
HttpHandler next)
public int getThreshold()
public void handleRequest(HttpServerExchange exchange) throws Exception
handleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionpublic long[] getStuckThreadIds()
Copyright © 2018. All rights reserved.