Package org.citrusframework.container
Class Timer.Builder
java.lang.Object
org.citrusframework.AbstractTestActionBuilder<T,S>
org.citrusframework.AbstractTestContainerBuilder<Timer,Timer.Builder>
org.citrusframework.container.Timer.Builder
- All Implemented Interfaces:
ReferenceResolverAware,TestActionBuilder<Timer>,TestActionContainerBuilder<Timer,Timer.Builder>
- Enclosing class:
- Timer
Action builder.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.citrusframework.TestActionBuilder
TestActionBuilder.DelegatingTestActionBuilder<T extends TestAction> -
Field Summary
Fields inherited from class org.citrusframework.AbstractTestContainerBuilder
actions, referenceResolverFields inherited from class org.citrusframework.AbstractTestActionBuilder
selfFields inherited from interface org.citrusframework.TestActionBuilder
logger, RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelay(long delay) Initial delay in milliseconds before first timer event should fire.doBuild()Builds the container.fork(boolean fork) Fork the timer so that other actions can run in parallel to the nested timer actionsSet the timer's id.interval(long interval) Interval in milliseconds between each timer.repeatCount(int repeatCount) The maximum number of times the timer event is fired.static Timer.Buildertimer()Fluent API action building entry method used in Java DSL.Set the timer's id.Methods inherited from class org.citrusframework.AbstractTestContainerBuilder
actions, actions, build, container, getActions, setReferenceResolverMethods inherited from class org.citrusframework.AbstractTestActionBuilder
actor, description, getActor, getDescription, getName, name
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
timer
Fluent API action building entry method used in Java DSL.- Returns:
-
delay
Initial delay in milliseconds before first timer event should fire.- Parameters:
delay-
-
interval
Interval in milliseconds between each timer. As soon as the interval has elapsed the next timer event is fired.- Parameters:
interval-
-
repeatCount
The maximum number of times the timer event is fired. Once this maximum number has been reached the timer is stopped- Parameters:
repeatCount-
-
fork
Fork the timer so that other actions can run in parallel to the nested timer actions- Parameters:
fork-
-
id
Set the timer's id. This is useful when referencing the timer from other test actions like stop-timer- Parameters:
timerId- a unique timer id within the test context
-
timerId
Set the timer's id. This is useful when referencing the timer from other test actions like stop-timer- Parameters:
timerId- a unique timer id within the test context
-
doBuild
Description copied from class:AbstractTestContainerBuilderBuilds the container.- Specified by:
doBuildin classAbstractTestContainerBuilder<Timer,Timer.Builder> - Returns:
-