
Event - type of raw data that needs to get summarized into a bucketBucket - type of data contained in each bucketOutput - type of data emitted to stream subscribers (often is the same as A but does not have to be)public abstract class BucketedCumulativeCounterStream<Event extends HystrixEvent,Bucket,Output> extends BucketedCounterStream<Event,Bucket,Output>
BucketedCounterStream which accumulates counters infinitely in the bucket-reduction stepbucketedStream, numBuckets, subscription| Modifier | Constructor and Description |
|---|---|
protected |
BucketedCumulativeCounterStream(HystrixEventStream<Event> stream,
int numBuckets,
int bucketSizeInMs,
rx.functions.Func2<Bucket,Event,Bucket> reduceCommandCompletion,
rx.functions.Func2<Output,Bucket,Output> reduceBucket) |
| Modifier and Type | Method and Description |
|---|---|
rx.Observable<Output> |
observe()
Return the stream of buckets
|
getLatest, startCachingStreamValuesIfUnstarted, unsubscribepublic rx.Observable<Output> observe()
BucketedCounterStreamobserve in class BucketedCounterStream<Event extends HystrixEvent,Bucket,Output>