Class Summary.Child

    • Constructor Detail

      • Child

        private Child​(java.util.List<CKMSQuantiles.Quantile> quantiles,
                      long maxAgeSeconds,
                      int ageBuckets)
    • Method Detail

      • time

        public double time​(java.lang.Runnable timeable)
        Executes runnable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
        Parameters:
        timeable - Code that is being timed
        Returns:
        Measured duration in seconds for timeable to complete.
      • time

        public <E> E time​(java.util.concurrent.Callable<E> timeable)
        Executes callable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
        Parameters:
        timeable - Code that is being timed
        Returns:
        Result returned by callable.
      • observe

        public void observe​(double amt)
        Observe the given amount.