Interface Limit
- All Superinterfaces:
LimitAlgorithm,NamedService
- All Known Implementing Classes:
AimdLimit,FixedLimit
Contract for a concurrency limiter.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.concurrency.limits.LimitAlgorithm
LimitAlgorithm.Outcome, LimitAlgorithm.Result<T>, LimitAlgorithm.Token -
Method Summary
Methods inherited from interface io.helidon.common.concurrency.limits.LimitAlgorithm
call, invoke, invoke, run, tryAcquire, tryAcquire, tryAcquireOutcome, tryAcquireOutcomeMethods inherited from interface io.helidon.common.config.NamedService
name, type
-
Method Details
-
copy
Limit copy()Create a copy of this limit with the same configuration.- Returns:
- a copy of this limit
-
init
Initialization method for this limit. This method can be used for any task, including metrics initialization.- Parameters:
socketName- socket name for this limit such as"@default"
-