ResponseOutOfOrderStrategy which does not check for early responses.
Early response detection requires 1ms blocking reads and incurs a hefty performance cost for
large uploads.
MonitoringResponseOutOfOrderStrategy
| Modifier and Type | Field and Description |
|---|---|
| public static final NoResponseOutOfOrderStrategy |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isEarlyResponseDetected(final ClassicHttpRequest
The current request. request, final HttpClientConnection The connection used to send the current request. connection, final InputStream The response stream, this may be used to check for an early response. inputStream, final long Number of bytes that have already been sent. totalBytesSent, final long The size of a socket write operation that will follow this check. nextWriteSize)Implements org. java. with the number of
bytes that have already been sent, and the size of the write that will occur if this check
does not encounter an out of order response.
|
| INSTANCE | back to summary |
|---|---|
| public static final NoResponseOutOfOrderStrategy INSTANCE | |
| NoResponseOutOfOrderStrategy | back to summary |
|---|---|
| public NoResponseOutOfOrderStrategy() | |
| isEarlyResponseDetected | back to summary |
|---|---|
| public boolean isEarlyResponseDetected(final ClassicHttpRequest request, final HttpClientConnection connection, final InputStream inputStream, final long totalBytesSent, final long nextWriteSize) Implements org. Doc from org. Called before each write to the to a socket
| |