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 |
---|---|
MarshallerMetricsCollector |
addCustomMetric(String name,
long value)
Records a custom metric, as required by the client code.
|
MarshallerMetricsCollector.Timer |
executionStart()
Start timing the execution phase.
|
void |
publish()
Publishes the metrics collected so far by this collector
|
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–2015 Atlassian. All rights reserved.