Interface SmallRyeFaultToleranceConfig.StrategiesConfig.RateLimitConfig
- Enclosing interface:
SmallRyeFaultToleranceConfig.StrategiesConfig
public static interface SmallRyeFaultToleranceConfig.StrategiesConfig.RateLimitConfig
-
Method Summary
Modifier and TypeMethodDescriptionenabled()Whether the@RateLimitstrategy is enabled.Minimum time between two consecutive invocations.The unit forminSpacing().Optional<io.smallrye.faulttolerance.api.RateLimitType> type()The type of type windows used for rate limiting.value()The maximum number of invocations in a time window.window()The time window length.The unit forwindow().
-
Method Details
-
enabled
Whether the@RateLimitstrategy is enabled. -
minSpacing
Minimum time between two consecutive invocations. If the time between two consecutive invocations is shorter, the second invocation is rejected.- See Also:
-
minSpacingUnit
Optional<ChronoUnit> minSpacingUnit()The unit forminSpacing().- See Also:
-
type
The type of type windows used for rate limiting.- See Also:
-
value
The maximum number of invocations in a time window.- See Also:
-
window
The time window length.- See Also:
-
windowUnit
Optional<ChronoUnit> windowUnit()The unit forwindow().- See Also:
-