Class RetrySimulation

java.lang.Object
org.springframework.retry.support.RetrySimulation

public class RetrySimulation extends Object
The results of a simulation.
  • Constructor Details

    • RetrySimulation

      public RetrySimulation()
  • Method Details

    • addSequence

      public void addSequence(List<Long> sleeps)
      Add a sequence of sleeps to the simulation.
      Parameters:
      sleeps - the times to be created as a RetrySimulation.SleepSequence
    • getPercentiles

      public List<Double> getPercentiles()
      Returns:
      Returns a list of all the unique sleep values which were executed within all simulations.
    • getPercentile

      public double getPercentile(double p)
    • getLongestTotalSleepSequence

      public RetrySimulation.SleepSequence getLongestTotalSleepSequence()
      Returns:
      the longest total time slept by a retry sequence.