Package org.awaitility.core
Class ConditionSettings
java.lang.Object
org.awaitility.core.ConditionSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final booleanprivate final ConditionEvaluationListenerprivate final ExecutorLifecycleprivate final FailFastConditionprivate final ExceptionIgnorerprivate final Durationprivate final PollIntervalprivate final WaitConstraint -
Constructor Summary
ConstructorsConstructorDescriptionConditionSettings(String alias, boolean catchUncaughtExceptions, WaitConstraint waitConstraint, PollInterval pollInterval, Duration pollDelay, ConditionEvaluationListener conditionEvaluationListener, ExceptionIgnorer ignoreExceptions, ExecutorLifecycle executorLifecycle, FailFastCondition failFastCondition) Constructor for ConditionSettings. -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Getter for the fieldalias.Getter for the fieldconditionResultLoggerReturning hold predicate wait time from fieldwaitConstraint.Returning maximum wait time from fieldwaitConstraint.Returning minimum wait time from fieldwaitConstraint.Getter for the fieldpollDelay.Getter for the fieldpollInterval.booleanhasAlias()hasAliasbooleanshouldCatchUncaughtExceptions.boolean
-
Field Details
-
alias
-
waitConstraint
-
pollInterval
-
pollDelay
-
catchUncaughtExceptions
private final boolean catchUncaughtExceptions -
ignoreExceptions
-
conditionEvaluationListener
-
executorLifecycle
-
failFastCondition
-
-
Constructor Details
-
ConditionSettings
ConditionSettings(String alias, boolean catchUncaughtExceptions, WaitConstraint waitConstraint, PollInterval pollInterval, Duration pollDelay, ConditionEvaluationListener conditionEvaluationListener, ExceptionIgnorer ignoreExceptions, ExecutorLifecycle executorLifecycle, FailFastCondition failFastCondition) Constructor for ConditionSettings.
- Parameters:
alias- aStringobject.catchUncaughtExceptions- a boolean.waitConstraint- aWaitConstraintobject.pollInterval- aorg.awaitility.Durationobject.pollDelay- aorg.awaitility.Durationobject.conditionEvaluationListener- aConditionEvaluationListenerobject.ignoreExceptions- aExceptionIgnorerobject.executorLifecycle- Responsible for performing executor service cleanup after each condition evaluation roundfailFastCondition- a Callable that if returns true, fails the test immediately
-
-
Method Details
-
getAlias
Getter for the field
alias.- Returns:
- a
Stringobject.
-
getMaxWaitTime
Returning maximum wait time from field
waitConstraint.- Returns:
- a
org.awaitility.Durationobject.
-
getMinWaitTime
Returning minimum wait time from field
waitConstraint.- Returns:
- a
org.awaitility.Durationobject.
-
getHoldPredicateTime
Returning hold predicate wait time from field
waitConstraint.- Returns:
- a
org.awaitility.Durationobject.
-
getPollInterval
Getter for the field
pollInterval.- Returns:
- a
org.awaitility.Durationobject.
-
getPollDelay
Getter for the field
pollDelay.- Returns:
- a
org.awaitility.Durationobject.
-
hasAlias
public boolean hasAlias()hasAlias
- Returns:
- a boolean.
-
shouldCatchUncaughtExceptions
public boolean shouldCatchUncaughtExceptions()shouldCatchUncaughtExceptions.
- Returns:
- a boolean.
-
getConditionEvaluationListener
Getter for the field
conditionResultLogger- Returns:
ConditionEvaluationListenerobject.
-
shouldExceptionBeIgnored
- Returns:
- true if a particular exception should be ignored
-
getExecutorLifecycle
- Returns:
- The executor lifecycle
-
getFailFastCondition
- Returns:
- the fail fast
Callable.
-