public class WaitOptions extends ActionOptions<WaitOptions>
Modifier and Type | Field and Description |
---|---|
protected java.time.Duration |
duration |
Constructor and Description |
---|
WaitOptions() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
build()
Creates a map based on the provided options.
|
protected void |
verify()
This method is automatically called before building
options map to verify the consistency of the instance.
|
static WaitOptions |
waitOptions(java.time.Duration duration)
Creates and instance of
WaitOptions . |
WaitOptions |
withDuration(java.time.Duration duration)
Set the wait duration.
|
public static WaitOptions waitOptions(java.time.Duration duration)
WaitOptions
.duration
- is the duration of the waiting.public WaitOptions withDuration(java.time.Duration duration)
duration
- the value to set.
Time resolution unit is 1 ms.protected void verify()
ActionOptions
verify
in class ActionOptions<WaitOptions>
public java.util.Map<java.lang.String,java.lang.Object> build()
ActionOptions
build
in class ActionOptions<WaitOptions>