Class SchedulerConfig.Builder
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfigBuilder<SchedulerConfig.Builder,SchedulerConfig>
io.floci.testcontainers.config.services.SchedulerConfig.Builder
- Enclosing class:
- SchedulerConfig
public static class SchedulerConfig.Builder
extends AbstractServiceConfigBuilder<SchedulerConfig.Builder,SchedulerConfig>
Builder for
SchedulerConfig.-
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutableSchedulerConfigfrom this builder.invocationEnabled(boolean invocationEnabled) Sets whether the background dispatcher that fires schedule targets is enabled.tickIntervalSeconds(long tickIntervalSeconds) Sets how often the dispatcher scans for due schedules, in seconds.Methods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled
-
Method Details
-
invocationEnabled
Sets whether the background dispatcher that fires schedule targets is enabled. Whenfalse, the scheduler API is CRUD-only.- Parameters:
invocationEnabled-trueto enable invocation (default true)- Returns:
- this builder
-
tickIntervalSeconds
Sets how often the dispatcher scans for due schedules, in seconds. Must be >= 1.- Parameters:
tickIntervalSeconds- the tick interval in seconds (default 10L)- Returns:
- this builder
-
build
Creates an immutableSchedulerConfigfrom this builder.- Specified by:
buildin classAbstractServiceConfigBuilder<SchedulerConfig.Builder,SchedulerConfig> - Returns:
- the Scheduler configuration
-