* @deprecated by client configuration via the constructor.
* This method will be removed later on.
*/
@Deprecated
public void setConfiguration(ClientConfiguration clientConfiguration) {
AmazonHttpClient existingClient = this.client;
RequestMetricCollector requestMetricCollector = null;
if (existingClient != null) {
requestMetricCollector = existingClient.getRequestMetricCollector();
existingClient.shutdown();
}
this.clientConfiguration = clientConfiguration;
this.client = new AmazonHttpClient(clientConfiguration, requestMetricCollector);
}