
public class RollingCommandEventCounterStream extends BucketedRollingCounterStream<HystrixCommandCompletion,long[],long[]>
HystrixCommandProperties.metricsRollingStatisticalWindowInMilliseconds()
b = HystrixCommandProperties.metricsRollingStatisticalWindowBuckets()
These values are stable - there's no peeking into a bucket until it is emitted
These values get produced and cached in this class. This value (the latest observed value) may be queried using RollingCommandEventCounterStream.getLatest(HystrixEventType).bucketedStream, numBuckets, subscription| Modifier and Type | Method and Description |
|---|---|
static RollingCommandEventCounterStream |
getInstance(HystrixCommandKey commandKey,
HystrixCommandProperties properties) |
static RollingCommandEventCounterStream |
getInstance(HystrixCommandKey commandKey,
int numBuckets,
int bucketSizeInMs) |
long |
getLatest(HystrixEventType eventType) |
static void |
reset() |
observegetLatest, startCachingStreamValuesIfUnstarted, unsubscribepublic static RollingCommandEventCounterStream getInstance(HystrixCommandKey commandKey, HystrixCommandProperties properties)
public static RollingCommandEventCounterStream getInstance(HystrixCommandKey commandKey, int numBuckets, int bucketSizeInMs)
public static void reset()
public long getLatest(HystrixEventType eventType)