Top Description Fields Constructors Methods
org.apache.hc.core5.util

public Class DeadlineTimeoutException

extends TimeoutException
Class Inheritance
Imports
java.util.concurrent.TimeUnit, .TimeoutException

A specialization of TimeoutException that carries a deadline and an actual value, both as UNIX times.
Since
5.0

Field Summary

Modifier and TypeField and Description
private final Deadline
private static final long

Constructor Summary

AccessConstructor and Description
private
DeadlineTimeoutException(final Deadline
When was the deadline in UNIX time.
deadline
)

Creates a new exception for the given timeout deadline and actual timeout.

Method Summary

Modifier and TypeMethod and Description
public static DeadlineTimeoutException

Returns:

a new TimeoutValueException.
from
(final Deadline
When was the deadline in UNIX time.
deadline
)

Creates a new exception for the given timeout deadline and actual timeout.

public Deadline

Returns:

The expected deadline for this timeout since the start of UNIX time.
getDeadline
()

The expected deadline for this timeout since the start of UNIX time.

Field Detail

deadlineback to summary
private final Deadline deadline
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.concurrent.TimeoutException.serialVersionUID.

Constructor Detail

DeadlineTimeoutExceptionback to summary
private DeadlineTimeoutException(final Deadline deadline)

Creates a new exception for the given timeout deadline and actual timeout.

Parameters
deadline:Deadline

When was the deadline in UNIX time.

Method Detail

fromback to summary
public static DeadlineTimeoutException from(final Deadline deadline)

Creates a new exception for the given timeout deadline and actual timeout.

Parameters
deadline:Deadline

When was the deadline in UNIX time.

Returns:DeadlineTimeoutException

a new TimeoutValueException.

getDeadlineback to summary
public Deadline getDeadline()

The expected deadline for this timeout since the start of UNIX time.

Returns:Deadline

The expected deadline for this timeout since the start of UNIX time.