Class NoResponseOutOfOrderStrategy

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isEarlyResponseDetected​(ClassicHttpRequest request, HttpClientConnection connection, java.io.InputStream inputStream, long totalBytesSent, long nextWriteSize)
      Called before each write to the to a socket OutputStream 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoResponseOutOfOrderStrategy

        public NoResponseOutOfOrderStrategy()
    • Method Detail

      • isEarlyResponseDetected

        public boolean isEarlyResponseDetected​(ClassicHttpRequest request,
                                               HttpClientConnection connection,
                                               java.io.InputStream inputStream,
                                               long totalBytesSent,
                                               long nextWriteSize)
        Description copied from interface: ResponseOutOfOrderStrategy
        Called before each write to the to a socket OutputStream 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.
        Specified by:
        isEarlyResponseDetected in interface ResponseOutOfOrderStrategy
        Parameters:
        request - The current request.
        connection - The connection used to send the current request.
        inputStream - The response stream, this may be used to check for an early response.
        totalBytesSent - Number of bytes that have already been sent.
        nextWriteSize - The size of a socket write operation that will follow this check.
        Returns:
        True if an early response was detected, otherwise false.