HttpHandler
public class StuckThreadDetectionHandler extends java.lang.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 java.lang.Exception
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangejava.lang.Exception
public long[] getStuckThreadIds()
Copyright © 2018. All rights reserved.