org.springframework.retry.support
Class RetrySimulation
java.lang.Object
org.springframework.retry.support.RetrySimulation
public class RetrySimulation
- extends Object
The results of a simulation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RetrySimulation
public RetrySimulation()
addSequence
public void addSequence(List<Long> sleeps)
- Add a sequence of sleeps to the simulation.
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.
Copyright © 2013 SpringSource. All Rights Reserved.