Class HitsAndMissesCountingMetricsOperator<R>
- java.lang.Object
-
- io.wcm.caravan.commons.metrics.rx.HitsAndMissesCountingMetricsOperator<R>
-
- Type Parameters:
R
- Items type
- All Implemented Interfaces:
rx.functions.Func1<rx.Subscriber<? super R>,rx.Subscriber<? super R>>
,rx.functions.Function
,rx.Observable.Operator<R,R>
@ProviderType public final class HitsAndMissesCountingMetricsOperator<R> extends Object implements rx.Observable.Operator<R,R>
Operator counting hits and misses. If no element passes the operator, themissesCounter
gets increased. For every passed element thehitsCounter
gets increased.
-
-
Constructor Summary
Constructors Constructor Description HitsAndMissesCountingMetricsOperator(com.codahale.metrics.Counter hitsCounter, com.codahale.metrics.Counter missesCounter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description rx.Subscriber<? super R>
call(rx.Subscriber<? super R> subscriber)
-