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

@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(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"