
public class RollingDistributionStream<Event extends HystrixEvent>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
RollingDistributionStream(HystrixEventStream<Event> stream,
int numBuckets,
int bucketSizeInMs,
rx.functions.Func2<org.HdrHistogram.Histogram,Event,org.HdrHistogram.Histogram> addValuesToBucket) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLatestMean() |
int |
getLatestPercentile(double percentile) |
rx.Observable<CachedValuesHistogram> |
observe() |
void |
startCachingStreamValuesIfUnstarted() |
void |
unsubscribe() |
protected RollingDistributionStream(HystrixEventStream<Event> stream, int numBuckets, int bucketSizeInMs, rx.functions.Func2<org.HdrHistogram.Histogram,Event,org.HdrHistogram.Histogram> addValuesToBucket)
public rx.Observable<CachedValuesHistogram> observe()
public int getLatestMean()
public int getLatestPercentile(double percentile)
public void startCachingStreamValuesIfUnstarted()
public void unsubscribe()