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:
java.io.Serializable
public class DeadlineTimeoutException extends java.util.concurrent.TimeoutExceptionA specialization ofTimeoutExceptionthat carries a deadline and an actual value, both as UNIX times.- Since:
- 5.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Deadlinedeadlineprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateDeadlineTimeoutException(Deadline deadline)Creates a new exception for the given timeout deadline and actual timeout.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeadlineTimeoutExceptionfrom(Deadline deadline)Creates a new exception for the given timeout deadline and actual timeout.DeadlinegetDeadline()The expected deadline for this timeout since the start of UNIX time.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
deadline
private final Deadline deadline
-
-
Constructor Detail
-
DeadlineTimeoutException
private DeadlineTimeoutException(Deadline deadline)
Creates a new exception for the given timeout deadline and actual timeout.- Parameters:
deadline- When was the deadline in UNIX time.
-
-
Method Detail
-
from
public static DeadlineTimeoutException from(Deadline deadline)
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
public Deadline 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.
-
-