TimeoutException that carries a Timeout deadline and the actual value.
| Modifier and Type | Field and Description |
|---|---|
| private final Timeout | |
| private final Timeout | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | TimeoutValueException(final Timeout
How long was the expected timeout. deadline, final Timeout How long we actually waited. actual)Creates a new exception for the given timeout deadline and actual timeout. |
| Modifier and Type | Method and Description |
|---|---|
| public static TimeoutValueException | Returns: a new TimeoutValueException.How long was the expected timeout in milliseconds. timeoutDeadline, final long How long we actually waited in milliseconds. timeoutActual)Creates a new exception for the given timeout deadline and actual timeout. |
| public Timeout | Returns: how long was the expected timeout in milliseconds.Gets how long was the expected timeout in milliseconds. |
| public Timeout | Returns: how long we actually waited in milliseconds.Gets how long we actually waited in milliseconds. |
| private static long | Returns: the givenvalue if positive, otherwise returns 0.any timeout value)Returns the given |
| actual | back to summary |
|---|---|
| private final Timeout actual | |
| deadline | back to summary |
|---|---|
| private final Timeout deadline | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| TimeoutValueException | back to summary |
|---|---|
| public TimeoutValueException(final Timeout deadline, final Timeout actual) Creates a new exception for the given timeout deadline and actual timeout. | |
| fromMilliseconds | back to summary |
|---|---|
| public static TimeoutValueException fromMilliseconds(final long timeoutDeadline, final long timeoutActual) Creates a new exception for the given timeout deadline and actual timeout.
| |
| getActual | back to summary |
|---|---|
| public Timeout getActual() Gets how long was the expected timeout in milliseconds.
| |
| getDeadline | back to summary |
|---|---|
| public Timeout getDeadline() Gets how long we actually waited in milliseconds.
| |
| min0 | back to summary |
|---|---|
| private static long min0(final long value) Returns the given
| |