Class ThroughputLimitProvider

java.lang.Object
io.helidon.common.concurrency.limits.ThroughputLimitProvider
All Implemented Interfaces:
LimitProvider, ConfiguredProvider<Limit>, ConfiguredProvider<Limit>

public class ThroughputLimitProvider extends Object implements LimitProvider
ServiceLoader service provider for ThroughputLimit limit implementation.
  • Constructor Details

    • ThroughputLimitProvider

      public ThroughputLimitProvider()
      Constructor required by the service loader.
  • Method Details

    • configKey

      public String configKey()
      Description copied from interface: ConfiguredProvider
      Key this service implementation is stored under. This is also considered the service "type" when used in a list in configuration, to allow the same service defined more than once.
      Specified by:
      configKey in interface ConfiguredProvider<Limit>
      Specified by:
      configKey in interface ConfiguredProvider<Limit>
      Returns:
      key of this implementation
    • create

      public Limit create(Config config, String name)
      Description copied from interface: ConfiguredProvider
      Create a new instance from the configuration located on the provided node.

      API Note: the default method implementation is provided for backward compatibility and will be removed in the next major version

      Specified by:
      create in interface ConfiguredProvider<Limit>
      Parameters:
      config - located at ConfiguredProvider.configKey() node
      name - name of the configured implementation
      Returns:
      a new instance created from this config node