@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface WithTimeout
Modifier and Type | Required Element and Description |
---|---|
long |
time
Desired waiting duration.
|
Modifier and Type | Optional Element and Description |
---|---|
java.time.temporal.ChronoUnit |
chronoUnit
Desired time unit.
|
java.util.concurrent.TimeUnit |
unit
Deprecated.
use
chronoUnit() instead. This property is going to be removed. |
@Deprecated public abstract java.util.concurrent.TimeUnit unit
chronoUnit()
instead. This property is going to be removed.