public class MetricsEmittingQueryRunner<T> extends Object implements QueryRunner<T>
| Constructor and Description |
|---|
MetricsEmittingQueryRunner(ServiceEmitter emitter,
QueryToolChest<T,? extends Query<T>> queryToolChest,
QueryRunner<T> queryRunner,
ObjLongConsumer<? super QueryMetrics<?>> reportMetric,
Consumer<QueryMetrics<?>> applyCustomDimensions) |
| Modifier and Type | Method and Description |
|---|---|
Sequence<T> |
run(QueryPlus<T> queryPlus,
ResponseContext responseContext)
Runs the given query and returns results in a time-ordered sequence.
|
MetricsEmittingQueryRunner<T> |
withWaitMeasuredFromNow() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunpublic MetricsEmittingQueryRunner(ServiceEmitter emitter, QueryToolChest<T,? extends Query<T>> queryToolChest, QueryRunner<T> queryRunner, ObjLongConsumer<? super QueryMetrics<?>> reportMetric, Consumer<QueryMetrics<?>> applyCustomDimensions)
public MetricsEmittingQueryRunner<T> withWaitMeasuredFromNow()
public Sequence<T> run(QueryPlus<T> queryPlus, ResponseContext responseContext)
QueryRunnerrun in interface QueryRunner<T>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.