public final class BlockingReadTimeoutHandler extends Object implements HttpHandler
BlockingReadTimeoutHandler allows configurable blocking I/O timeouts
for read operations within an exchange.
Unlike Options.READ_TIMEOUT this only applies to blocking operations which can be helpful to prevent the worker pool from becoming saturated when clients stop responding.
When a timeout occurs, a ReadTimeoutException is thrown, and the
ServerConnection is closed.
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockingReadTimeoutHandler.Builder |
| Modifier and Type | Method and Description |
|---|---|
static BlockingReadTimeoutHandler.Builder |
builder() |
void |
handleRequest(HttpServerExchange exchange)
Handle the request.
|
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionpublic static BlockingReadTimeoutHandler.Builder builder()
Copyright © 2021 JBoss by Red Hat. All rights reserved.