java.lang.Object
io.helidon.config.ScheduledPollingStrategy.Builder
- All Implemented Interfaces:
Builder<ScheduledPollingStrategy.Builder,
,ScheduledPollingStrategy> Supplier<ScheduledPollingStrategy>
- Enclosing class:
ScheduledPollingStrategy
public static final class ScheduledPollingStrategy.Builder
extends Object
implements Builder<ScheduledPollingStrategy.Builder,ScheduledPollingStrategy>
A fluent API builder for
ScheduledPollingStrategy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.executor
(ScheduledExecutorService executor) Executor service to use to schedule the polling events.recurringPolicy
(ScheduledPollingStrategy.RecurringPolicy recurringPolicy) Configure the recurring policy to use.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<ScheduledPollingStrategy.Builder,
ScheduledPollingStrategy> - Returns:
- instance of the built type
-
recurringPolicy
public ScheduledPollingStrategy.Builder recurringPolicy(ScheduledPollingStrategy.RecurringPolicy recurringPolicy) Configure the recurring policy to use.- Parameters:
recurringPolicy
- policy- Returns:
- updated builder instance
-
executor
Executor service to use to schedule the polling events.- Parameters:
executor
- executor service for scheduling events- Returns:
- updated builder instance
-