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.
getUniqueSleeps
public List<Long> getUniqueSleeps()
- Returns:
- Returns a list of all the unique sleep values which were executed within
all simulations.
getUniqueSleepsHistogram
public List<Long> getUniqueSleepsHistogram()
- Returns:
- the count of each sleep which was seen throughout all sleeps.
histogram[i] = sum(getUniqueSleeps()[i])
getLongestTotalSleepSequence
public RetrySimulation.SleepSequence getLongestTotalSleepSequence()
- Returns:
- the longest total time slept by a retry sequence.
Copyright © 2012 SpringSource. All Rights Reserved.