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:
-
RateLimit.minSpacing()
-
minSpacingUnit
Optional<ChronoUnit> minSpacingUnit()The unit forminSpacing().- See Also:
-
RateLimit.minSpacingUnit()
-
type
The type of type windows used for rate limiting.- See Also:
-
RateLimit.type()
-
value
The maximum number of invocations in a time window.- See Also:
-
RateLimit.value()
-
window
The time window length.- See Also:
-
RateLimit.window()
-
windowUnit
Optional<ChronoUnit> windowUnit()The unit forwindow().- See Also:
-
RateLimit.windowUnit()
-