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