public class Condition
| Constructor and Description |
|---|
Condition(InstanceStep step) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
always() |
boolean |
failSafeOnce()
Perform step only once, but try again if it fails.
|
Instance |
getInstance() |
InstanceStep |
getStep() |
boolean |
never() |
boolean |
once()
Perform step only once, but try again if it fails.
|
boolean |
repeatAfter(long millis)
Repeat performing step after specified number of milliseconds since last time.
|
boolean |
repeatAfterDays(long count)
Repeat performing step after specified number of days since last time.
|
boolean |
repeatAfterHours(long count)
Repeat performing step after specified number of hours since last time.
|
boolean |
repeatAfterMinutes(long count)
Repeat performing step after specified number of minutes since last time.
|
boolean |
repeatAfterSeconds(long count)
Repeat performing step after specified number of seconds since last time.
|
boolean |
repeatEvery(kotlin.jvm.functions.Function1<? super java.lang.Long,java.lang.Boolean> counterPredicate)
Repeat performing step basing on counter based predicate.
|
boolean |
repeatEvery(long times)
Repeat performing step every n-times.
|
boolean |
repeatProbably(double probability)
Repeat performing step with a probability specified as percentage [0, 1.0).
|
boolean |
rerunOnFail() |
boolean |
sinceEndedMoreThan(long millis) |
boolean |
ultimateOnce()
Perform step only once regardless if it fails or not.
|
public Condition(@NotNull
InstanceStep step)
@NotNull public Instance getInstance()
public boolean always()
public boolean never()
public boolean rerunOnFail()
public boolean sinceEndedMoreThan(long millis)
public boolean once()
Perform step only once, but try again if it fails.
public boolean failSafeOnce()
Perform step only once, but try again if it fails.
public boolean ultimateOnce()
Perform step only once regardless if it fails or not.
public boolean repeatAfter(long millis)
Repeat performing step after specified number of milliseconds since last time.
public boolean repeatAfterSeconds(long count)
Repeat performing step after specified number of seconds since last time.
public boolean repeatAfterMinutes(long count)
Repeat performing step after specified number of minutes since last time.
public boolean repeatAfterHours(long count)
Repeat performing step after specified number of hours since last time.
public boolean repeatAfterDays(long count)
Repeat performing step after specified number of days since last time.
public boolean repeatEvery(@NotNull
kotlin.jvm.functions.Function1<? super java.lang.Long,java.lang.Boolean> counterPredicate)
Repeat performing step basing on counter based predicate.
public boolean repeatEvery(long times)
Repeat performing step every n-times.
public boolean repeatProbably(double probability)
Repeat performing step with a probability specified as percentage [0, 1.0).
@NotNull public InstanceStep getStep()