本文整理了Java中com.amazonaws.http.AmazonHttpClient.getRequestMetricCollector()
方法的一些代码示例,展示了AmazonHttpClient.getRequestMetricCollector()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AmazonHttpClient.getRequestMetricCollector()
方法的具体详情如下:
包路径:com.amazonaws.http.AmazonHttpClient
类名称:AmazonHttpClient
方法名:getRequestMetricCollector
[英]Returns the httpClientSettings client specific request metric collector; or null if there is none.
[中]返回httpClientSettings客户端特定的请求度量收集器;如果没有,则为null。
代码示例来源:origin: aws/aws-sdk-java
/**
* Returns the client specific {@link RequestMetricCollector}; or null if
* there is none.
*/
public RequestMetricCollector getRequestMetricsCollector() {
return client.getRequestMetricCollector();
}
代码示例来源:origin: aws/aws-sdk-java
/**
* Returns the client specific request metric collector if there is one; or
* the one at the AWS SDK level otherwise.
*/
protected RequestMetricCollector requestMetricCollector() {
RequestMetricCollector mc = client.getRequestMetricCollector();
return mc == null ? AwsSdkMetrics.getRequestMetricCollector() : mc;
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-core
/**
* Returns the client specific {@link RequestMetricCollector}; or null if
* there is none.
*/
public RequestMetricCollector getRequestMetricsCollector() {
return client.getRequestMetricCollector();
}
代码示例来源:origin: aws-amplify/aws-sdk-android
/**
* @return the client specific {@link RequestMetricCollector}; or null if
* there is none.
*
* @deprecated metrics is deprecated
*/
@Deprecated
public RequestMetricCollector getRequestMetricsCollector() {
return client.getRequestMetricCollector();
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-core
/**
* Returns the client specific request metric collector if there is one; or
* the one at the AWS SDK level otherwise.
*/
protected RequestMetricCollector requestMetricCollector() {
RequestMetricCollector mc = client.getRequestMetricCollector();
return mc == null ? AwsSdkMetrics.getRequestMetricCollector() : mc;
}
代码示例来源:origin: aws-amplify/aws-sdk-android
/**
* @return the client specific request metric collector if there is one; or
* the one at the AWS SDK level otherwise.
*
* @deprecated metrics is deprecated
*/
@Deprecated
protected RequestMetricCollector requestMetricCollector() {
final RequestMetricCollector mc = client.getRequestMetricCollector();
return mc == null ? AwsSdkMetrics.getRequestMetricCollector() : mc;
}
代码示例来源:origin: aws-amplify/aws-sdk-android
/**
* @deprecated by client configuration via the constructor. This method will
* be removed later on.
* @param clientConfiguration the client configuration.
*/
@Deprecated
@SuppressWarnings("checkstyle:hiddenfield")
public void setConfiguration(final ClientConfiguration clientConfiguration) {
final AmazonHttpClient existingClient = this.client;
RequestMetricCollector requestMetricCollector = null;
if (existingClient != null) {
requestMetricCollector = existingClient.getRequestMetricCollector();
existingClient.shutdown();
}
this.clientConfiguration = clientConfiguration;
this.client = new AmazonHttpClient(clientConfiguration, requestMetricCollector);
}
代码示例来源:origin: Nextdoor/bender
/**
* Returns the client specific {@link RequestMetricCollector}; or null if
* there is none.
*/
public RequestMetricCollector getRequestMetricsCollector() {
return client.getRequestMetricCollector();
}
代码示例来源:origin: com.gluonhq/aws-java-sdk-core
/**
* @return the client specific {@link RequestMetricCollector}; or null if
* there is none.
*
* @deprecated metrics is deprecated
*/
@Deprecated
public RequestMetricCollector getRequestMetricsCollector() {
return client.getRequestMetricCollector();
}
代码示例来源:origin: com.amazonaws/aws-android-sdk-core
/**
* @return the client specific {@link RequestMetricCollector}; or null if
* there is none.
*
* @deprecated metrics is deprecated
*/
@Deprecated
public RequestMetricCollector getRequestMetricsCollector() {
return client.getRequestMetricCollector();
}
代码示例来源:origin: com.gluonhq/aws-java-sdk-core
/**
* @return the client specific request metric collector if there is one; or
* the one at the AWS SDK level otherwise.
*
* @deprecated metrics is deprecated
*/
@Deprecated
protected RequestMetricCollector requestMetricCollector() {
final RequestMetricCollector mc = client.getRequestMetricCollector();
return mc == null ? AwsSdkMetrics.getRequestMetricCollector() : mc;
}
代码示例来源:origin: com.amazonaws/aws-android-sdk-core
/**
* @return the client specific request metric collector if there is one; or
* the one at the AWS SDK level otherwise.
*
* @deprecated metrics is deprecated
*/
@Deprecated
protected RequestMetricCollector requestMetricCollector() {
final RequestMetricCollector mc = client.getRequestMetricCollector();
return mc == null ? AwsSdkMetrics.getRequestMetricCollector() : mc;
}
代码示例来源:origin: Nextdoor/bender
/**
* Returns the client specific request metric collector if there is one; or
* the one at the AWS SDK level otherwise.
*/
protected RequestMetricCollector requestMetricCollector() {
RequestMetricCollector mc = client.getRequestMetricCollector();
return mc == null ? AwsSdkMetrics.getRequestMetricCollector() : mc;
}
代码示例来源:origin: com.amazonaws/aws-android-sdk-core
/**
* @deprecated by client configuration via the constructor. This method will
* be removed later on.
* @param clientConfiguration the client configuration.
*/
@Deprecated
@SuppressWarnings("checkstyle:hiddenfield")
public void setConfiguration(final ClientConfiguration clientConfiguration) {
final AmazonHttpClient existingClient = this.client;
RequestMetricCollector requestMetricCollector = null;
if (existingClient != null) {
requestMetricCollector = existingClient.getRequestMetricCollector();
existingClient.shutdown();
}
this.clientConfiguration = clientConfiguration;
this.client = new AmazonHttpClient(clientConfiguration, requestMetricCollector);
}
代码示例来源:origin: com.gluonhq/aws-java-sdk-core
/**
* @deprecated by client configuration via the constructor. This method will
* be removed later on.
* @param clientConfiguration the client configuration.
*/
@Deprecated
@SuppressWarnings("checkstyle:hiddenfield")
public void setConfiguration(final ClientConfiguration clientConfiguration) {
final AmazonHttpClient existingClient = this.client;
RequestMetricCollector requestMetricCollector = null;
if (existingClient != null) {
requestMetricCollector = existingClient.getRequestMetricCollector();
existingClient.shutdown();
}
this.clientConfiguration = clientConfiguration;
this.client = new AmazonHttpClient(clientConfiguration, requestMetricCollector);
}
内容来源于网络,如有侵权,请联系作者删除!