Class H2StreamTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.InterruptedIOException
org.apache.hc.core5.http2.H2StreamTimeoutException
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class InterruptedIOException
bytesTransferred -
Constructor Summary
ConstructorsConstructorDescriptionH2StreamTimeoutException(String message, int streamId, org.apache.hc.core5.util.Timeout timeout) -
Method Summary
Modifier and TypeMethodDescriptionintorg.apache.hc.core5.util.TimeoutMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
H2StreamTimeoutException
public H2StreamTimeoutException(String message, int streamId, org.apache.hc.core5.util.Timeout timeout)
-
-
Method Details
-
getStreamId
public int getStreamId() -
getTimeout
public org.apache.hc.core5.util.Timeout getTimeout()
-