com.amazonaws.metrics
Class RequestMetricCollector

java.lang.Object
  extended by com.amazonaws.metrics.RequestMetricCollector

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
static interface RequestMetricCollector.Factory
          Can be used to serve as a factory for the request metric collector.
 
Field Summary
static RequestMetricCollector NONE
          A convenient instance of a no-op request metric collector.
 
Constructor Summary
RequestMetricCollector()
           
 
Method Summary
abstract  void collectMetrics(Request<?> request, Response<?> response)
          Used to collect the metric at the end of a request/response cycle.
 boolean isEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final RequestMetricCollector NONE
A convenient instance of a no-op request metric collector.

Constructor Detail

RequestMetricCollector

public RequestMetricCollector()
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()


Copyright © 2016. All rights reserved.