Class TimerMetricsOperator<R>
- java.lang.Object
-
- io.wcm.caravan.commons.metrics.rx.TimerMetricsOperator<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 TimerMetricsOperator<R> extends Object implements rx.Observable.Operator<R,R>
Operator measuring the time an operation needs from executing theFunc1.call(Object)
toObserver.onCompleted()
orObserver.onError(Throwable)
method.
-
-
Constructor Summary
Constructors Constructor Description TimerMetricsOperator(com.codahale.metrics.Timer timer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description rx.Subscriber<? super R>
call(rx.Subscriber<? super R> subscriber)
-