Class RetryWithTimeOutStrategy
- java.lang.Object
-
- com.chutneytesting.engine.domain.execution.strategies.RetryWithTimeOutStrategy
-
- All Implemented Interfaces:
StepExecutionStrategy
public class RetryWithTimeOutStrategy extends Object implements StepExecutionStrategy
Retry every retryDelay execution of a Step until success or until timeOut Expects following strategy properties: - timeOut: duration before giving up on the execution of a failed step - retryDelay: waiting duration before retrying execution of a failed stepExpected duration format: "floating_positive_number [duration_unit]" where floating_positive_number : the duration value (ex.: 10) time_unit : the duration unit. Valid values are: - "min" or "m" for minutes - "sec" or "s" for seconds - "ms" for miliseconds empty values are interpreted as seconds Example: timeOut: "5 min", or "300 sec", ...
-
-
Constructor Summary
Constructors Constructor Description RetryWithTimeOutStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Statusexecute(ScenarioExecution scenarioExecution, Step step, ScenarioContext scenarioContext, StepExecutionStrategies strategies)StringgetType()
-
-
-
Method Detail
-
getType
public String getType()
- Specified by:
getTypein interfaceStepExecutionStrategy
-
execute
public Status execute(ScenarioExecution scenarioExecution, Step step, ScenarioContext scenarioContext, StepExecutionStrategies strategies) throws IllegalStateException
- Specified by:
executein interfaceStepExecutionStrategy- Throws:
IllegalStateException- when sleep is interrupted
-
-