public final class RequestLimitingHandler extends Object implements HttpHandler
| Constructor and Description |
|---|
RequestLimitingHandler(int maximumConcurrentRequests,
HttpHandler nextHandler)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaximumConcurrentRequests()
Get the maximum concurrent requests.
|
HttpHandler |
getNextHandler()
Get the next handler.
|
void |
handleRequest(HttpServerExchange exchange)
Handle the request.
|
int |
setMaximumConcurrentRequests(int newMax)
Set the maximum concurrent requests.
|
RequestLimitingHandler |
setNextHandler(HttpHandler nextHandler)
Set the next handler.
|
public RequestLimitingHandler(int maximumConcurrentRequests,
HttpHandler nextHandler)
null.maximumConcurrentRequests - the maximum concurrent requestsnextHandler - the next handlerpublic void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionpublic int getMaximumConcurrentRequests()
public int setMaximumConcurrentRequests(int newMax)
newMax - the maximum concurrent requestspublic HttpHandler getNextHandler()
null.public RequestLimitingHandler setNextHandler(HttpHandler nextHandler)
null.nextHandler - the next handlerCopyright © 2013 JBoss by Red Hat. All Rights Reserved.