
public abstract class RollingConcurrencyStream
extends java.lang.Object
HystrixCommandProperties.metricsRollingStatisticalWindowInMilliseconds()
b = HystrixCommandProperties.metricsRollingStatisticalWindowBuckets()
This value gets cached in this class. It may be queried using RollingConcurrencyStream.getLatestRollingMax()
This is a stable value - there's no peeking into a bucket until it is emitted| Modifier | Constructor and Description |
|---|---|
protected |
RollingConcurrencyStream(HystrixEventStream<HystrixCommandExecutionStarted> inputEventStream,
int numBuckets,
int bucketSizeInMs) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLatestRollingMax() |
rx.Observable<java.lang.Integer> |
observe() |
void |
startCachingStreamValuesIfUnstarted() |
void |
unsubscribe() |
protected RollingConcurrencyStream(HystrixEventStream<HystrixCommandExecutionStarted> inputEventStream, int numBuckets, int bucketSizeInMs)