public final class ParseTimeoutUpdater extends Object implements Runnable, ServerConnection.CloseListener
UndertowOptions.REQUEST_PARSE_TIMEOUT
Constructor and Description |
---|
ParseTimeoutUpdater(ServerConnection channel, long requestParseTimeout, long requestIdleTimeout) Creates new instance of ParseTimeoutSourceConduit. |
Modifier and Type | Method and Description |
---|---|
void | closed(ServerConnection connection) |
void | connectionIdle() Called when the connection goes idle |
void | failedParse() Called when a request is received, however it is not parsed in a single read() call. |
void | requestStarted() Cancels timeout countdown. |
void | run() |
public ParseTimeoutUpdater(ServerConnection channel, long requestParseTimeout, long requestIdleTimeout)
channel
- Channel which will be closed in case of timeout.requestParseTimeout
- Timeout value. Negative value will indicate that this updated is disabled.requestIdleTimeout
- public void connectionIdle()
public void failedParse()
public void requestStarted()
Should be called after parsing is complete (to avoid closing connection during other activities).
public void closed(ServerConnection connection)
closed
in interface ServerConnection.CloseListener
Copyright © 2015 JBoss by Red Hat. All rights reserved.