Uses of Interface
io.helidon.common.concurrency.limits.LimitAlgorithm.Outcome
Packages that use LimitAlgorithm.Outcome
Package
Description
Concurrency limits API and default implementations.
-
Uses of LimitAlgorithm.Outcome in io.helidon.common.concurrency.limits
Subinterfaces of LimitAlgorithm.Outcome in io.helidon.common.concurrency.limitsModifier and TypeInterfaceDescriptionstatic interface
Behavior of anLimitAlgorithm.Outcome
representing an accepted work item.static interface
Behavior of anLimitAlgorithm.Outcome
representing a deferred decision.Methods in io.helidon.common.concurrency.limits that return LimitAlgorithm.OutcomeModifier and TypeMethodDescriptionstatic LimitAlgorithm.Outcome
LimitAlgorithm.Outcome.deferredAcceptance
(String originName, String algorithmType, LimitAlgorithm.Token token, long waitStartNanos, long waitEndNanos) Creates a newLimitAlgorithm.Outcome
representing a deferred acceptance of a work item.static LimitAlgorithm.Outcome
LimitAlgorithm.Outcome.deferredRejection
(String originName, String algorithmType, long waitStartNanos, long waitEndNanos) Creates a newLimitAlgorithm.Outcome
representing a deferred rejection of a work item.static LimitAlgorithm.Outcome
LimitAlgorithm.Outcome.immediateAcceptance
(String originName, String algorithmType, LimitAlgorithm.Token token) Creates a newLimitAlgorithm.Outcome
representing an immediate acceptance of a work item.static LimitAlgorithm.Outcome
LimitAlgorithm.Outcome.immediateRejection
(String originName, String algorithmType) Creates a newLimitAlgorithm.Outcome
representing an immediate rejection of a work item.LimitAlgorithm.Result.outcome()
LimitAlgorithm.Outcome
of the limit algorithm.default LimitAlgorithm.Outcome
Invoke a runnable within the limits of this limiter, invoking the providedConsumer
with theLimitAlgorithm.Outcome
resulting from applying the limit algorithm.AimdLimit.tryAcquireOutcome
(boolean wait) FixedLimit.tryAcquireOutcome
(boolean wait) default LimitAlgorithm.Outcome
LimitAlgorithm.tryAcquireOutcome()
Try to acquire a token, waiting for available permits for the configured amount of time, if queuing is enabled.default LimitAlgorithm.Outcome
LimitAlgorithm.tryAcquireOutcome
(boolean wait) Tries to acquire a token, waiting for available permits for the configured amount of time, ifwait
is enabled, returning immediately otherwise.Methods in io.helidon.common.concurrency.limits with parameters of type LimitAlgorithm.OutcomeModifier and TypeMethodDescriptionstatic <T> LimitAlgorithm.Result
<T> LimitAlgorithm.Result.create
(T callableReturnValue, LimitAlgorithm.Outcome outcome) Creates a newResult
combining the return value from theCallable
and the limit algorithmLimitAlgorithm.Outcome
.