
public class RollingCollapserEventCounterStream extends BucketedRollingCounterStream<HystrixCollapserEvent,long[],long[]>
HystrixCollapserProperties.metricsRollingStatisticalWindowInMilliseconds()
b = HystrixCollapserProperties.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 RollingCollapserEventCounterStream.getLatest(HystrixEventType.Collapser).bucketedStream, numBuckets, subscription| Modifier and Type | Method and Description |
|---|---|
static RollingCollapserEventCounterStream |
getInstance(HystrixCollapserKey collapserKey,
HystrixCollapserProperties properties) |
static RollingCollapserEventCounterStream |
getInstance(HystrixCollapserKey collapserKey,
int numBuckets,
int bucketSizeInMs) |
long |
getLatest(HystrixEventType.Collapser eventType) |
static void |
reset() |
observegetLatest, startCachingStreamValuesIfUnstarted, unsubscribepublic static RollingCollapserEventCounterStream getInstance(HystrixCollapserKey collapserKey, HystrixCollapserProperties properties)
public static RollingCollapserEventCounterStream getInstance(HystrixCollapserKey collapserKey, int numBuckets, int bucketSizeInMs)
public static void reset()
public long getLatest(HystrixEventType.Collapser eventType)