
public class RollingThreadPoolEventCounterStream extends BucketedRollingCounterStream<HystrixCommandCompletion,long[],long[]>
HystrixThreadPoolProperties.metricsRollingStatisticalWindowInMilliseconds()
b = HystrixThreadPoolProperties.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.
You may query to find the latest rolling count of 2 events (executed/rejected) via RollingThreadPoolEventCounterStream.getLatestCount(com.netflix.hystrix.HystrixEventType.ThreadPool).bucketedStream, numBuckets, subscription| Modifier and Type | Method and Description |
|---|---|
long[] |
getEmptyBucketSummary() |
long[] |
getEmptyOutputValue() |
static RollingThreadPoolEventCounterStream |
getInstance(HystrixThreadPoolKey threadPoolKey,
HystrixThreadPoolProperties properties) |
static RollingThreadPoolEventCounterStream |
getInstance(HystrixThreadPoolKey threadPoolKey,
int numBuckets,
int bucketSizeInMs) |
long |
getLatestCount(HystrixEventType.ThreadPool eventType) |
static void |
reset() |
observegetLatest, startCachingStreamValuesIfUnstarted, unsubscribepublic static RollingThreadPoolEventCounterStream getInstance(HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolProperties properties)
public static RollingThreadPoolEventCounterStream getInstance(HystrixThreadPoolKey threadPoolKey, int numBuckets, int bucketSizeInMs)
public static void reset()
public long[] getEmptyBucketSummary()
public long[] getEmptyOutputValue()
public long getLatestCount(HystrixEventType.ThreadPool eventType)