Class PerlConfig


public final class PerlConfig extends LatencyConfig
Class PerlConfig extending LatencyConfig.
  • Field Details

    • NAME

      public static final String NAME
      String NAME = "PerL".
      See Also:
    • DEFAULT_PRINTING_INTERVAL_SECONDS

      public static final int DEFAULT_PRINTING_INTERVAL_SECONDS
      int DEFAULT_PRINTING_INTERVAL_SECONDS = 5.
      See Also:
    • DEFAULT_TIMEOUT_MS

      public static final int DEFAULT_TIMEOUT_MS
      int DEFAULT_TIMEOUT_MS = Time.MS_PER_SEC.
      See Also:
    • DEFAULT_RUNTIME_SECONDS

      public static final long DEFAULT_RUNTIME_SECONDS
      long DEFAULT_RUNTIME_SECONDS = Long.MAX_VALUE / Time.MS_PER_SEC.
      See Also:
    • MIN_WORKERS

      public static final int MIN_WORKERS
      int MIN_WORKERS = 1.
      See Also:
    • MIN_Q_PER_WORKER

      public static final int MIN_Q_PER_WORKER
      int MIN_Q_PER_WORKER = 3.
      See Also:
    • MIN_IDLE_NS

      public static final int MIN_IDLE_NS
      int MIN_IDLE_NS = Time.NS_PER_MICRO.
      See Also:
    • workers

      public int workers
      int workers.
    • qPerWorker

      public int qPerWorker
      int qPerWorker.
    • idleNS

      public int idleNS
      int idleNS.
    • maxQs

      public int maxQs
      int maxQs.
  • Constructor Details

    • PerlConfig

      public PerlConfig()
  • Method Details

    • build

      public static PerlConfig build() throws IOException
      Method build with no arguments.
      Returns:
      PerlConfig - build(PerlConfig.class.getClassLoader().getResourceAsStream(CONFIGFILE));
      Throws:
      IOException - If it occurs.
    • build

      public static PerlConfig build(InputStream in) throws IOException
      Method build with arguments.
      Parameters:
      in - InputStream
      Returns:
      PerlConfig - mapper.readValue(Objects.requireNonNull(in), PerlConfig.class);
      Throws:
      IOException - If it occurs.