All Superinterfaces:
LimitAlgorithm, NamedService
All Known Implementing Classes:
AimdLimit, FixedLimit

@Contract public interface Limit extends LimitAlgorithm, NamedService
Contract for a concurrency limiter.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.helidon.common.concurrency.limits.LimitAlgorithm

    LimitAlgorithm.Token
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a copy of this limit with the same configuration.
    default void
    init(String socketName)
    Initialization method for this limit.

    Methods inherited from interface io.helidon.common.concurrency.limits.LimitAlgorithm

    invoke, invoke, tryAcquire, tryAcquire

    Methods 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

      default void init(String socketName)
      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"