
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 BucketedRollingCounterStream<Event extends HystrixEvent,Bucket,Output> extends BucketedCounterStream<Event,Bucket,Output>
BucketedCounterStream which reduces numBuckets at a time.bucketedStream, numBuckets, subscription| Modifier | Constructor and Description |
|---|---|
protected |
BucketedRollingCounterStream(HystrixEventStream<Event> stream,
int numBuckets,
int bucketSizeInMs,
rx.functions.Func2<Bucket,Event,Bucket> appendRawEventToBucket,
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>