public class RetrySimulation extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RetrySimulation.SleepSequence |
| Constructor and Description |
|---|
RetrySimulation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSequence(List<Long> sleeps)
Add a sequence of sleeps to the simulation.
|
RetrySimulation.SleepSequence |
getLongestTotalSleepSequence() |
double |
getPercentile(double p) |
List<Double> |
getPercentiles() |
public void addSequence(List<Long> sleeps)
sleeps - the times to be created as a RetrySimulation.SleepSequencepublic List<Double> getPercentiles()
public double getPercentile(double p)
public RetrySimulation.SleepSequence getLongestTotalSleepSequence()
Copyright © 2018 SpringSource. All rights reserved.