public final class ParseTimeoutUpdater extends Object implements Runnable, ServerConnection.CloseListener, Closeable
UndertowOptions.REQUEST_PARSE_TIMEOUT
Constructor and Description |
---|
ParseTimeoutUpdater(ConnectedChannel channel,
long requestParseTimeout,
long requestIdleTimeout)
Creates new instance of ParseTimeoutSourceConduit.
|
ParseTimeoutUpdater(ConnectedChannel channel,
long requestParseTimeout,
long requestIdleTimeout,
Runnable closeTask)
Creates new instance of ParseTimeoutSourceConduit.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
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(ConnectedChannel 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 ParseTimeoutUpdater(ConnectedChannel channel, long requestParseTimeout, long requestIdleTimeout, Runnable closeTask)
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
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2017 JBoss by Red Hat. All rights reserved.