@ThreadSafe public class ServiceMetricCollectorSupport extends ServiceMetricCollector
RequestMetricCollector
ServiceMetricCollector.Factory
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
NONE
Modifier | Constructor and Description |
---|---|
protected |
ServiceMetricCollectorSupport(BlockingQueue<MetricDatum> queue) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addMetricsToQueue(MetricDatum metric)
Adds the given metric to the queue, returning true if successful or false
if no space available.
|
void |
collectByteThroughput(ByteThroughputProvider provider) |
void |
collectLatency(ServiceLatencyProvider provider) |
isEnabled
protected ServiceMetricCollectorSupport(BlockingQueue<MetricDatum> queue)
public void collectByteThroughput(ByteThroughputProvider provider)
collectByteThroughput
in class ServiceMetricCollector
public void collectLatency(ServiceLatencyProvider provider)
collectLatency
in class ServiceMetricCollector
protected boolean addMetricsToQueue(MetricDatum metric)
Copyright © 2022. All rights reserved.