| Modifier and Type | Field and Description |
|---|---|
| private final BarSplittingBiasedHistogram | |
| private long | |
| private final long | |
| private final LatencyHistogramQuery | |
| private final LongSupplier |
| Access | Constructor and Description |
|---|---|
| public | DefaultLatencyHistogramStatistic(double
histogram bucket bias factor phi, int number of buckets bucketCount, Duration sliding window size, in ns window, LongSupplier the supplier of time, which must be in the same unit as the time passed to the { timeSupplier)event(long, long)} method.Create a histogram maintained over a sliding time window. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public long | |
| public synchronized void | event(long
the clock at event completion in ns time, long the event latency in ns latency)Implements org. |
| public Long | |
| public Long | |
| private static Long | |
| public Long | percentile(double
the percentage (0.0-1.0) percent)Implements org. |
| public long[] | percentileBounds(double
the percentage (0.0-1.0) percent)Implements org. |
| public synchronized <T> T | query(Function<LatencyHistogramQuery, T> fn)
Implements org. |
| public String | |
| private void |
| histogram | back to summary |
|---|---|
| private final BarSplittingBiasedHistogram histogram | |
| nextPruning | back to summary |
|---|---|
| private long nextPruning | |
| pruningDelay | back to summary |
|---|---|
| private final long pruningDelay | |
| query | back to summary |
|---|---|
| private final LatencyHistogramQuery query | |
| timeSupplier | back to summary |
|---|---|
| private final LongSupplier timeSupplier | |
| DefaultLatencyHistogramStatistic | back to summary |
|---|---|
| public DefaultLatencyHistogramStatistic(double phi, int bucketCount, Duration window, LongSupplier timeSupplier) Create a histogram maintained over a sliding time window. The constructed histogram is:
| |
| DefaultLatencyHistogramStatistic | back to summary |
|---|---|
| public DefaultLatencyHistogramStatistic(double phi, int bucketCount, Duration window) | |
| buckets | back to summary |
|---|---|
| public List Implements org.
| |
| count | back to summary |
|---|---|
| public long count() Implements org.
| |
| event | back to summary |
|---|---|
| public synchronized void event(long time, long latency) Implements org. Doc from org. Called to indicate an event happened.
| |
| maximum | back to summary |
|---|---|
| public Long maximum() Implements org.
| |
| minimum | back to summary |
|---|---|
| public Long minimum() Implements org.
| |
| nullOrVal | back to summary |
|---|---|
| private static Long nullOrVal(double val) | |
| percentile | back to summary |
|---|---|
| public Long percentile(double percent) Implements org.
| |
| percentileBounds | back to summary |
|---|---|
| public long[] percentileBounds(double percent) Implements org.
| |
| query | back to summary |
|---|---|
| public synchronized <T> T query(Function<LatencyHistogramQuery, T> fn) Implements org. Doc from org. Enables to query the histogram several times within a synchronized state so that every calls are consistent
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| tryExpire | back to summary |
|---|---|
| private void tryExpire(boolean force, LongSupplier time) | |