Package org.apache.hc.core5.util
Class DeadlineTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.util.concurrent.TimeoutException
org.apache.hc.core5.util.DeadlineTimeoutException
- All Implemented Interfaces:
Serializable
A specialization of
TimeoutException that carries a deadline and an actual value, both as UNIX times.- Since:
- 5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeadlineTimeoutExceptionCreates a new exception for the given timeout deadline and actual timeout.The expected deadline for this timeout since the start of UNIX time.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
from
Creates a new exception for the given timeout deadline and actual timeout.- Parameters:
deadline- When was the deadline in UNIX time.- Returns:
- a new TimeoutValueException.
-
getDeadline
The expected deadline for this timeout since the start of UNIX time.- Returns:
- The expected deadline for this timeout since the start of UNIX time.
-