Package com.amazonaws.metrics
Class RequestMetricCollector
- java.lang.Object
-
- com.amazonaws.metrics.RequestMetricCollector
-
- Direct Known Subclasses:
RequestMetricCollectorSupport
public abstract class RequestMetricCollector extends Object
A service provider interface that can be used to implement an AWS SDK request/response metric collector.- See Also:
AwsSdkMetrics
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RequestMetricCollector.Factory
Can be used to serve as a factory for the request metric collector.
-
Field Summary
Fields Modifier and Type Field Description static RequestMetricCollector
NONE
A convenient instance of a no-op request metric collector.
-
Constructor Summary
Constructors Constructor Description RequestMetricCollector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
collectMetrics(Request<?> request, Response<?> response)
Used to collect the metric at the end of a request/response cycle.boolean
isEnabled()
-
-
-
Field Detail
-
NONE
public static final RequestMetricCollector NONE
A convenient instance of a no-op request metric collector.
-
-
Method Detail
-
collectMetrics
public abstract void collectMetrics(Request<?> request, Response<?> response)
Used to collect the metric at the end of a request/response cycle.- See Also:
Request.getAWSRequestMetrics()
-
isEnabled
public boolean isEnabled()
-
-