public interface MarshallerMetricsCollector
MetricsCollectingMarshaller} for example usage
Modifier and Type | Interface and Description |
---|---|
static interface |
MarshallerMetricsCollector.Timer
An interface to allow clients to stop the timing
|
Modifier and Type | Method and Description |
---|---|
@NonNull MarshallerMetricsCollector |
addCustomMetric(String name,
long value)
Records a custom metric, as required by the client code.
|
@NonNull MarshallerMetricsCollector.Timer |
executionStart()
Start timing the execution phase.
|
void |
publish()
Publishes the metrics collected so far by this collector
|
@NonNull MarshallerMetricsCollector.Timer |
streamingStart()
Start timing the streaming phase.
|
@NonNull MarshallerMetricsCollector.Timer executionStart()
MarshallerMetricsCollector.Timer.stop()
@NonNull MarshallerMetricsCollector.Timer streamingStart()
MarshallerMetricsCollector.Timer.stop()
@NonNull MarshallerMetricsCollector addCustomMetric(String name, long value)
name
- The name of the custom metricvalue
- The numeric value of the custom metricIllegalStateException
- if a metric by that name has already been recorded by this collectorvoid publish()
Copyright © 2003–2020 Atlassian. All rights reserved.