Class H2StreamTimeoutException

  • All Implemented Interfaces:
    java.io.Serializable

    public class H2StreamTimeoutException
    extends java.io.InterruptedIOException
    SocketTimeoutException raised when an HTTP/2 stream exceeds its configured timeout.

    This timeout is scoped to a single stream and is independent of the underlying connection socket timeout.

    Since:
    5.5
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.io.InterruptedIOException

        bytesTransferred
    • Constructor Summary

      Constructors 
      Constructor Description
      H2StreamTimeoutException​(java.lang.String message, int streamId, org.apache.hc.core5.util.Timeout timeout)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getStreamId()  
      org.apache.hc.core5.util.Timeout getTimeout()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

      • H2StreamTimeoutException

        public H2StreamTimeoutException​(java.lang.String message,
                                        int streamId,
                                        org.apache.hc.core5.util.Timeout timeout)
    • Method Detail

      • getStreamId

        public int getStreamId()
      • getTimeout

        public org.apache.hc.core5.util.Timeout getTimeout()