public class TimeoutValueException extends TimeoutException
TimeoutException that carries a Timeout deadline and the actual value.| Constructor and Description |
|---|
TimeoutValueException(Timeout deadline,
Timeout actual)
Creates a new exception for the given timeout deadline and actual timeout.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeoutValueException |
fromMilliseconds(long timeoutDeadline,
long timeoutActual)
Creates a new exception for the given timeout deadline and actual timeout.
|
Timeout |
getActual()
Gets how long was the expected timeout in milliseconds.
|
Timeout |
getDeadline()
Gets how long we actually waited in milliseconds.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static TimeoutValueException fromMilliseconds(long timeoutDeadline, long timeoutActual)
timeoutDeadline - How long was the expected timeout in milliseconds.timeoutActual - How long we actually waited in milliseconds.public Timeout getActual()
public Timeout getDeadline()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.