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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DeadlineTimeoutException
(Deadline deadline) Creates a new exception for the given timeout deadline and actual timeout. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeadlineTimeoutException
Creates 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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
deadline
-
-
Constructor Details
-
DeadlineTimeoutException
Creates a new exception for the given timeout deadline and actual timeout.- Parameters:
deadline
- When was the deadline in UNIX time.
-
-
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.
-