- java.lang.Object
-
- io.helidon.config.PollingStrategies
-
public final class PollingStrategies extends Object
Built-inPollingStrategy
implementations.The static factory methods offer convenient ways to obtain commonly-used
PollingStrategy
implementations.- See Also:
regular(java.time.Duration)
,nop()
,PollingStrategy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PollingStrategies.ScheduledBuilder
A builder for a scheduled polling strategy.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PollingStrategy
nop()
Provides a default polling strategy that does not fire an event at all.static PollingStrategies.ScheduledBuilder
regular(Duration interval)
Provides a scheduled polling strategy with a specified constant interval.
-
-
-
Method Detail
-
nop
public static PollingStrategy nop()
Provides a default polling strategy that does not fire an event at all.- Returns:
- no-operation polling strategy instance
-
regular
public 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
-
-