Package org.mockserver.model
Class DelayDistribution
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.DelayDistribution
-
public class DelayDistribution extends ObjectWithReflectiveEqualsHashCodeToString
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDelayDistribution.Type
-
Constructor Summary
Constructors Constructor Description DelayDistribution()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DelayDistributiongaussian(long mean, long stdDev)LonggetMax()LonggetMean()LonggetMedian()LonggetMin()LonggetP99()LonggetStdDev()DelayDistribution.TypegetType()static DelayDistributionlogNormal(long median, long p99)longsample()DelayDistributionsetMax(Long max)DelayDistributionsetMean(Long mean)DelayDistributionsetMedian(Long median)DelayDistributionsetMin(Long min)DelayDistributionsetP99(Long p99)DelayDistributionsetStdDev(Long stdDev)DelayDistributionsetType(DelayDistribution.Type type)static DelayDistributionuniform(long min, long max)-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, toString
-
-
-
-
Method Detail
-
uniform
public static DelayDistribution uniform(long min, long max)
-
logNormal
public static DelayDistribution logNormal(long median, long p99)
-
gaussian
public static DelayDistribution gaussian(long mean, long stdDev)
-
sample
public long sample()
-
getType
public DelayDistribution.Type getType()
-
setType
public DelayDistribution setType(DelayDistribution.Type type)
-
getMin
public Long getMin()
-
setMin
public DelayDistribution setMin(Long min)
-
getMax
public Long getMax()
-
setMax
public DelayDistribution setMax(Long max)
-
getMedian
public Long getMedian()
-
setMedian
public DelayDistribution setMedian(Long median)
-
getP99
public Long getP99()
-
setP99
public DelayDistribution setP99(Long p99)
-
getMean
public Long getMean()
-
setMean
public DelayDistribution setMean(Long mean)
-
getStdDev
public Long getStdDev()
-
setStdDev
public DelayDistribution setStdDev(Long stdDev)
-
-