Class AimdLimitConfig.BuilderBase.AimdLimitConfigImpl

java.lang.Object
io.helidon.common.concurrency.limits.AimdLimitConfig.BuilderBase.AimdLimitConfigImpl
All Implemented Interfaces:
Prototype.Api, Prototype.Factory<AimdLimit>, AimdLimitConfig, Supplier<AimdLimit>
Enclosing class:
AimdLimitConfig.BuilderBase<BUILDER extends AimdLimitConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends AimdLimitConfig>

protected static class AimdLimitConfig.BuilderBase.AimdLimitConfigImpl extends Object implements AimdLimitConfig, Supplier<AimdLimit>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • AimdLimitConfigImpl

      protected AimdLimitConfigImpl(AimdLimitConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • build

      public AimdLimit build()
      Description copied from interface: Prototype.Factory
      Create a new instance of the runtime type from this config object.
      Specified by:
      build in interface Prototype.Factory<AimdLimit>
      Returns:
      new configured runtime instance
    • get

      public AimdLimit get()
      Specified by:
      get in interface Supplier<AimdLimit>
    • backoffRatio

      public double backoffRatio()
    • initialLimit

      public int initialLimit()
    • maxLimit

      public int maxLimit()
    • minLimit

      public int minLimit()
    • timeout

      public Duration timeout()
    • clock

      public Optional<Supplier<Long>> clock()
    • name

      public String name()
    • queueLength

      public int queueLength()
    • queueTimeout

      public Duration queueTimeout()
    • fair

      public boolean fair()
    • enableMetrics

      public boolean enableMetrics()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object