Interface Limit

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

@Contract public interface Limit extends LimitAlgorithm, NamedService
Contract for a concurrency limiter.
  • 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(Limit.InitializationContext context)
      Initialization method for this limit. This method can be used for any task, including metrics initialization.
      Parameters:
      context - the context for limit initialization
    • init

      @Deprecated default void init(String originName)
      Deprecated.
      use init(InitializationContext) to provide initialization details explicitly.
      Initialization method for this limit. This method can be used for any task, including metrics initialization.
      Parameters:
      originName - origin name for this limit, such as "@default"