com.amazonaws.http.AmazonHttpClient.getRequestMetricCollector()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(81)

本文整理了Java中com.amazonaws.http.AmazonHttpClient.getRequestMetricCollector()方法的一些代码示例,展示了AmazonHttpClient.getRequestMetricCollector()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AmazonHttpClient.getRequestMetricCollector()方法的具体详情如下:
包路径:com.amazonaws.http.AmazonHttpClient
类名称:AmazonHttpClient
方法名:getRequestMetricCollector

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);
}

相关文章