Package org.citrusframework.container
Interface TimerContainerBuilder<T extends TestActionContainer,B extends TestActionContainerBuilder<T,B>>
- All Superinterfaces:
TestActionBuilder<T>,TestActionContainerBuilder<T,B>
public interface TimerContainerBuilder<T extends TestActionContainer,B extends TestActionContainerBuilder<T,B>>
extends TestActionContainerBuilder<T,B>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.citrusframework.TestActionBuilder
TestActionBuilder.DelegatingTestActionBuilder<T extends TestAction> -
Field Summary
Fields inherited from interface org.citrusframework.TestActionBuilder
logger, RESOURCE_PATH, TYPE_RESOLVER -
Method Summary
Modifier and TypeMethodDescriptionautoStop(boolean autoStop) Automatically stop the timer when test is finished.delay(long delay) Initial delay in milliseconds before first timer event should fire.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.Set the timer's id.Methods inherited from interface org.citrusframework.TestActionBuilder
buildMethods inherited from interface org.citrusframework.TestActionContainerBuilder
actions, actions, getActions
-
Method Details
-
delay
Initial delay in milliseconds before first timer event should fire. -
interval
Interval in milliseconds between each timer. As soon as the interval has elapsed the next timer event is fired. -
repeatCount
The maximum number of times the timer event is fired. Once this maximum number has been reached the timer is stopped -
fork
Fork the timer so that other actions can run in parallel to the nested timer actions -
autoStop
Automatically stop the timer when test is finished. -
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
-