public class TimeoutValueException extends TimeoutException
TimeoutException that carries a Timeout deadline and the actual value.| 构造器和说明 |
|---|
TimeoutValueException(Timeout deadline,
Timeout actual)
Creates a new exception for the given timeout deadline and actual timeout.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public 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 © 2023. All rights reserved.