public class LogarithmicSearchLatencyTracker extends Object implements ILatencyTracker
| Constructor and Description |
|---|
LogarithmicSearchLatencyTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLatencyMicros(long micros)
Increment the internal counter for the bucket this latency falls into.
|
void |
addLatencyMillis(long millis)
Increment the internal counter for the bucket this latency falls into.
|
void |
clear() |
long |
getBucketForLatencyMicros(long latency)
Returns the counts in the bucket this latency falls into.
|
long |
getBucketForLatencyMillis(long latency)
Returns the counts in the bucket this latency falls into.
|
long[] |
getLatencies()
Returns the list of latencies buckets as an array.
|
long |
getLatency(int index) |
public void addLatencyMillis(long millis)
addLatencyMillis in interface ILatencyTrackermillis - public void addLatencyMicros(long micros)
addLatencyMicros in interface ILatencyTrackermicros - public long[] getLatencies()
getLatencies in interface ILatencyTrackerpublic long getLatency(int index)
getLatency in interface ILatencyTrackerpublic void clear()
clear in interface ILatencyTrackerpublic long getBucketForLatencyMillis(long latency)
getBucketForLatencyMillis in interface ILatencyTrackerlatency - public long getBucketForLatencyMicros(long latency)
getBucketForLatencyMicros in interface ILatencyTrackerlatency - Copyright © 2019. All rights reserved.