Interface ConnectionReleaseTrigger

    • Method Detail

      • releaseConnection

        void releaseConnection()
                        throws java.io.IOException
        Releases the connection with the option of keep-alive. This is a "graceful" release and may cause IO operations for consuming the remainder of a response entity. Use abortConnection for a hard release. The connection may be reused as specified by the duration.
        Throws:
        java.io.IOException - in case of an IO problem. The connection will be released anyway.
      • abortConnection

        void abortConnection()
                      throws java.io.IOException
        Releases the connection without the option of keep-alive. This is a "hard" release that implies a shutdown of the connection. Use releaseConnection() for a graceful release.
        Throws:
        java.io.IOException - in case of an IO problem. The connection will be released anyway.