| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private long | |
| private volatile ThrottlerWindow | |
| private double | |
| private boolean | |
| private static final ThrottlerParameters | |
| private static final long | |
| private double | |
| private static final long | |
| private ThrottlerParameters | |
| private final ReentrantLock | |
| private static final long | |
| private static final long | |
| private long | |
| private final Random | |
| private long | |
| private static final long | |
| private static final long | |
| private static final long | |
| private boolean | |
| private final ThrottlerWindow | |
| private final ThrottlerWindow |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static double | |
| private long | |
| private long | |
| private double | |
| public void | |
| private ThrottlerWindow | |
| private void | |
| private long | |
| private double | |
| private boolean | |
| private static long | |
| private ThrottlerWindow | |
| private ThrottlerParameters | |
| private void | |
| private double | |
| private void | |
| public boolean | |
| private ThrottlerWindow | |
| private ThrottlerParameters |
| accumulatedDebtCarryCount | back to summary |
|---|---|
| private long accumulatedDebtCarryCount | |
| accumulatedDebtCarryLimit | back to summary |
|---|---|
| private long accumulatedDebtCarryLimit | |
| activeWindow | back to summary |
|---|---|
| private volatile ThrottlerWindow activeWindow | |
| averagePopulationSize | back to summary |
|---|---|
| private double averagePopulationSize | |
| disabled | back to summary |
|---|---|
| private boolean disabled | |
| DISABLED_PARAMETERS | back to summary |
|---|---|
| private static final ThrottlerParameters DISABLED_PARAMETERS | |
| EVENT_THROTTLER_OFF | back to summary |
|---|---|
| private static final long EVENT_THROTTLER_OFF | |
| ewmaPopulationSize | back to summary |
|---|---|
| private double ewmaPopulationSize | |
| HOUR | back to summary |
|---|---|
| private static final long HOUR | |
| lastParameters | back to summary |
|---|---|
| private ThrottlerParameters lastParameters | |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| MILLIUNITS | back to summary |
|---|---|
| private static final long MILLIUNITS | |
| MINUTE | back to summary |
|---|---|
| private static final long MINUTE | |
| periodMillis | back to summary |
|---|---|
| private long periodMillis | |
| randomGenerator | back to summary |
|---|---|
| private final Random randomGenerator | |
| sampleSize | back to summary |
|---|---|
| private long sampleSize | |
| TEN_PER_1000_MS_IN_DAYS | back to summary |
|---|---|
| private static final long TEN_PER_1000_MS_IN_DAYS | |
| TEN_PER_1000_MS_IN_HOURS | back to summary |
|---|---|
| private static final long TEN_PER_1000_MS_IN_HOURS | |
| TEN_PER_1000_MS_IN_MINUTES | back to summary |
|---|---|
| private static final long TEN_PER_1000_MS_IN_MINUTES | |
| update | back to summary |
|---|---|
| private boolean update | |
| window0 | back to summary |
|---|---|
| private final ThrottlerWindow window0 | |
| window1 | back to summary |
|---|---|
| private final ThrottlerWindow window1 | |
| Throttler | back to summary |
|---|---|
| public Throttler() | |
| adjustBoundary | back to summary |
|---|---|
| private static double adjustBoundary(double u) | |
| amortizeDebt | back to summary |
|---|---|
| private long amortizeDebt(ThrottlerWindow expired) | |
| computeAccumulatedDebtCarryLimit | back to summary |
|---|---|
| private long computeAccumulatedDebtCarryLimit(ThrottlerParameters parameters) | |
| computeEwmaAlphaCoefficient | back to summary |
|---|---|
| private double computeEwmaAlphaCoefficient(long lookBackCount) | |
| configure | back to summary |
|---|---|
| public void configure(long sampleSize, long periodMillis) | |
| configure | back to summary |
|---|---|
| private ThrottlerWindow configure(ThrottlerParameters parameters, ThrottlerWindow expired) | |
| configure | back to summary |
|---|---|
| private void configure(ThrottlerParameters parameters) | |
| deriveSamplingInterval | back to summary |
|---|---|
| private long deriveSamplingInterval(double sampleSize, ThrottlerWindow expired) | |
| exponentiallyWeightedMovingAverage | back to summary |
|---|---|
| private double exponentiallyWeightedMovingAverage(double y, double alpha, double s) | |
| is_disabled | back to summary |
|---|---|
| private boolean is_disabled(long eventSampleSize) | |
| nextGeometric | back to summary |
|---|---|
| private static long nextGeometric(double p, double u) | |
| nextWindow | back to summary |
|---|---|
| private ThrottlerWindow nextWindow(ThrottlerWindow expired) | |
| nextWindowParameters | back to summary |
|---|---|
| private ThrottlerParameters nextWindowParameters() | |
| normalize | back to summary |
|---|---|
| private void normalize() | |
| projectPopulationSize | back to summary |
|---|---|
| private double projectPopulationSize(ThrottlerWindow expired) | |
| rotateWindow | back to summary |
|---|---|
| private void rotateWindow(long ticks) | |
| sample | back to summary |
|---|---|
| public boolean sample(long ticks) | |
| setRate | back to summary |
|---|---|
| private ThrottlerWindow setRate(ThrottlerParameters parameters, ThrottlerWindow expired) | |
| updateParameters | back to summary |
|---|---|
| private ThrottlerParameters updateParameters() | |