public abstract class ServiceMetricCollector extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ServiceMetricCollector.Factory
Interface for 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)
provider
- the byte throughput provider.public abstract void collectLatency(ServiceLatencyProvider provider)
provider
- the service latency provider.public boolean isEnabled()
Copyright © 2019. All rights reserved.