Class RetrySimulation
java.lang.Object
org.springframework.retry.support.RetrySimulation
The results of a simulation.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSequence
(List<Long> sleeps) Add a sequence of sleeps to the simulation.double
getPercentile
(double p)
-
Constructor Details
-
RetrySimulation
public RetrySimulation()
-
-
Method Details
-
addSequence
Add a sequence of sleeps to the simulation.- Parameters:
sleeps
- the times to be created as aRetrySimulation.SleepSequence
-
getPercentiles
- Returns:
- Returns a list of all the unique sleep values which were executed within all simulations.
-
getPercentile
public double getPercentile(double p) -
getLongestTotalSleepSequence
- Returns:
- the longest total time slept by a retry sequence.
-