Package org.awaitility.core
Class ConditionSettings
- java.lang.Object
-
- org.awaitility.core.ConditionSettings
-
public class ConditionSettings extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringaliasprivate booleancatchUncaughtExceptionsprivate ConditionEvaluationListenerconditionEvaluationListenerprivate ExecutorLifecycleexecutorLifecycleprivate FailFastConditionfailFastConditionprivate ExceptionIgnorerignoreExceptionsprivate java.time.DurationpollDelayprivate PollIntervalpollIntervalprivate WaitConstraintwaitConstraint
-
Constructor Summary
Constructors Constructor Description ConditionSettings(java.lang.String alias, boolean catchUncaughtExceptions, WaitConstraint waitConstraint, PollInterval pollInterval, java.time.Duration pollDelay, ConditionEvaluationListener conditionEvaluationListener, ExceptionIgnorer ignoreExceptions, ExecutorLifecycle executorLifecycle, FailFastCondition failFastCondition)Constructor for ConditionSettings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlias()Getter for the fieldalias.ConditionEvaluationListenergetConditionEvaluationListener()Getter for the fieldconditionResultLoggerExecutorLifecyclegetExecutorLifecycle()FailFastConditiongetFailFastCondition()java.time.DurationgetHoldPredicateTime()Returning hold predicate wait time from fieldwaitConstraint.java.time.DurationgetMaxWaitTime()Returning maximum wait time from fieldwaitConstraint.java.time.DurationgetMinWaitTime()Returning minimum wait time from fieldwaitConstraint.java.time.DurationgetPollDelay()Getter for the fieldpollDelay.PollIntervalgetPollInterval()Getter for the fieldpollInterval.booleanhasAlias()hasAliasbooleanshouldCatchUncaughtExceptions()shouldCatchUncaughtExceptions.booleanshouldExceptionBeIgnored(java.lang.Throwable e)
-
-
-
Field Detail
-
alias
private final java.lang.String alias
-
waitConstraint
private final WaitConstraint waitConstraint
-
pollInterval
private final PollInterval pollInterval
-
pollDelay
private final java.time.Duration pollDelay
-
catchUncaughtExceptions
private final boolean catchUncaughtExceptions
-
ignoreExceptions
private final ExceptionIgnorer ignoreExceptions
-
conditionEvaluationListener
private final ConditionEvaluationListener conditionEvaluationListener
-
executorLifecycle
private final ExecutorLifecycle executorLifecycle
-
failFastCondition
private final FailFastCondition failFastCondition
-
-
Constructor Detail
-
ConditionSettings
ConditionSettings(java.lang.String alias, boolean catchUncaughtExceptions, WaitConstraint waitConstraint, PollInterval pollInterval, java.time.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 Detail
-
getAlias
public java.lang.String getAlias()
Getter for the field
alias.- Returns:
- a
Stringobject.
-
getMaxWaitTime
public java.time.Duration getMaxWaitTime()
Returning maximum wait time from field
waitConstraint.- Returns:
- a
org.awaitility.Durationobject.
-
getMinWaitTime
public java.time.Duration getMinWaitTime()
Returning minimum wait time from field
waitConstraint.- Returns:
- a
org.awaitility.Durationobject.
-
getHoldPredicateTime
public java.time.Duration getHoldPredicateTime()
Returning hold predicate wait time from field
waitConstraint.- Returns:
- a
org.awaitility.Durationobject.
-
getPollInterval
public PollInterval getPollInterval()
Getter for the field
pollInterval.- Returns:
- a
org.awaitility.Durationobject.
-
getPollDelay
public java.time.Duration 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
public ConditionEvaluationListener getConditionEvaluationListener()
Getter for the field
conditionResultLogger- Returns:
ConditionEvaluationListenerobject.
-
shouldExceptionBeIgnored
public boolean shouldExceptionBeIgnored(java.lang.Throwable e)
- Returns:
- true if a particular exception should be ignored
-
getExecutorLifecycle
public ExecutorLifecycle getExecutorLifecycle()
- Returns:
- The executor lifecycle
-
getFailFastCondition
public FailFastCondition getFailFastCondition()
- Returns:
- the fail fast
Callable.
-
-