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 interfaceBehavior of anLimitAlgorithm.Outcomerepresenting an accepted work item.static interfaceBehavior of anLimitAlgorithm.Outcomerepresenting a deferred decision.Methods in io.helidon.common.concurrency.limits that return LimitAlgorithm.OutcomeModifier and TypeMethodDescriptionstatic LimitAlgorithm.OutcomeLimitAlgorithm.Outcome.deferredAcceptance(String originName, String algorithmType, LimitAlgorithm.Token token, long waitStartNanos, long waitEndNanos) Creates a newLimitAlgorithm.Outcomerepresenting a deferred acceptance of a work item.static LimitAlgorithm.OutcomeLimitAlgorithm.Outcome.deferredRejection(String originName, String algorithmType, long waitStartNanos, long waitEndNanos) Creates a newLimitAlgorithm.Outcomerepresenting a deferred rejection of a work item.static LimitAlgorithm.OutcomeLimitAlgorithm.Outcome.immediateAcceptance(String originName, String algorithmType, LimitAlgorithm.Token token) Creates a newLimitAlgorithm.Outcomerepresenting an immediate acceptance of a work item.static LimitAlgorithm.OutcomeLimitAlgorithm.Outcome.immediateRejection(String originName, String algorithmType) Creates a newLimitAlgorithm.Outcomerepresenting an immediate rejection of a work item.LimitAlgorithm.Result.outcome()LimitAlgorithm.Outcomeof the limit algorithm.default LimitAlgorithm.OutcomeInvoke a runnable within the limits of this limiter, invoking the providedConsumerwith theLimitAlgorithm.Outcomeresulting from applying the limit algorithm.AimdLimit.tryAcquireOutcome(boolean wait) FixedLimit.tryAcquireOutcome(boolean wait) default LimitAlgorithm.OutcomeLimitAlgorithm.tryAcquireOutcome()Try to acquire a token, waiting for available permits for the configured amount of time, if queuing is enabled.default LimitAlgorithm.OutcomeLimitAlgorithm.tryAcquireOutcome(boolean wait) Tries to acquire a token, waiting for available permits for the configured amount of time, ifwaitis 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 newResultcombining the return value from theCallableand the limit algorithmLimitAlgorithm.Outcome.