Package io.helidon.config
Class PollingStrategies
- java.lang.Object
- 
- io.helidon.config.PollingStrategies
 
- 
 public final class PollingStrategies extends Object Built-inPollingStrategyimplementations.The static factory methods offer convenient ways to obtain commonly-used PollingStrategyimplementations.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPollingStrategies.FilesystemWatchBuilderA builder for a filesystem watch polling strategy.static classPollingStrategies.ScheduledBuilderA builder for a scheduled polling strategy.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static PollingStrategynop()Provides a default polling strategy that does not fire an event at all.static PollingStrategies.ScheduledBuilderregular(Duration interval)Provides a scheduled polling strategy with a specified constant interval.static PollingStrategies.FilesystemWatchBuilderwatch(Path watchedPath)Provides a filesystem watch polling strategy with a specified watched path.
 
- 
- 
- 
Method Detail- 
noppublic static PollingStrategy nop() Provides a default polling strategy that does not fire an event at all.- Returns:
- no-operation polling strategy instance
 
 - 
regularpublic static PollingStrategies.ScheduledBuilder regular(Duration interval) Provides a scheduled polling strategy with a specified constant interval.- Parameters:
- interval- an interval between polling
- Returns:
- a regular polling strategy
 
 - 
watchpublic static PollingStrategies.FilesystemWatchBuilder watch(Path watchedPath) Provides a filesystem watch polling strategy with a specified watched path.- Parameters:
- watchedPath- a path which should be watched
- Returns:
- a filesystem watching polling strategy
 
 
- 
 
-