public static class TimeoutUtils.Timeout extends Object
Modifier and Type | Field and Description |
---|---|
private long |
end |
private Boolean |
result
If set, we will always return this value.
|
private long |
start |
Constructor and Description |
---|
Timeout(long milliseconds) |
Modifier and Type | Method and Description |
---|---|
boolean |
isElapsed() |
boolean |
setElapsed(boolean result)
Skip counting the time and always return the provided result.
|
String |
toString() |
private final long start
private final long end
private Boolean result
Copyright © 2022 Requirement Yogi. All rights reserved.