public abstract class ServiceMetricCollector extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ServiceMetricCollector.Factory |
Modifier and Type | Field and Description |
---|---|
static ServiceMetricCollector |
NONE
A convenient instance of a no-op service metric collector.
|
Constructor and Description |
---|
ServiceMetricCollector() |
Modifier and Type | Method and Description |
---|---|
abstract void |
collectByteThroughput(ByteThroughputProvider provider)
Collects metrics on the number of bytes written or read and the respective
duration.
|
abstract void |
collectLatency(ServiceLatencyProvider provider)
Collects metrics for non-request specific latencies.
|
boolean |
isEnabled() |
public static final ServiceMetricCollector NONE
public abstract void collectByteThroughput(ByteThroughputProvider provider)
public abstract void collectLatency(ServiceLatencyProvider provider)
public boolean isEnabled()
Copyright © 2020. All rights reserved.