Uses of Interface
io.helidon.common.concurrency.limits.LimitAlgorithm.Token
Package
Description
Concurrency limits API and default implementations.
-
Uses of LimitAlgorithm.Token in io.helidon.common.concurrency.limits
Modifier and TypeMethodDescriptionAimdLimit.tryAcquire
(boolean wait) FixedLimit.tryAcquire
(boolean wait) default Optional
<LimitAlgorithm.Token> LimitAlgorithm.tryAcquire()
Try to acquire a token, waiting for available permits for the configured amount of time, if queuing is enabled.LimitAlgorithm.tryAcquire
(boolean wait) Try to acquire a token, waiting for available permits for the configured amount of time, ifwait
is enabled, returning immediately otherwise.