Interface LimitAlgorithm

All Known Subinterfaces:
Limit
All Known Implementing Classes:
AimdLimit, FixedLimit, ThroughputLimit

public interface LimitAlgorithm
Concurrency limit algorithm.

There are two ways to use a limit: by handling the outcome returned by tryAcquireOutcome() and the token it exposes when accepted, or by invoking a callable or runnable through call(Callable) or run(Runnable).

The convenience methods are backed by the same tryAcquireOutcome(boolean) decisions, so behavior is consistent.