public interface Timeout
A timeout which can be converted to different time-units.
| Modifier and Type | Method and Description |
|---|---|
long |
in(TimeUnit targetUnit)
Get the timeout in the given unit.
|
long |
in(TimeUnit targetUnit,
double factor)
Get the timeout in the given unit adjusted by the given factor.
|
@Nonnegative long in(@Nonnull TimeUnit targetUnit)
targetUnit - the timeunit to use@Nonnegative long in(@Nonnull TimeUnit targetUnit, @Nonnegative double factor)
Get the timeout in the given unit adjusted by the given factor.
targetUnit - the timeunit to usefactor - factor to adjust the timeoutCopyright © 2011-2017 CoreMedia AG. All Rights Reserved.