public class MetricUploader extends Object
PutMetricDataRequests to a CloudWatchAsyncClient, logging whether it was successful or a failure to
the CloudWatchMetricLogger.METRIC_LOGGER.| Constructor and Description |
|---|
MetricUploader(CloudWatchAsyncClient cloudWatchClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean closeClient) |
CompletableFuture<Void> |
upload(List<PutMetricDataRequest> requests)
Upload the provided list of requests to CloudWatch, completing the returned future when the uploads complete.
|
public MetricUploader(CloudWatchAsyncClient cloudWatchClient)
public CompletableFuture<Void> upload(List<PutMetricDataRequest> requests)
public void close(boolean closeClient)
Copyright © 2023. All rights reserved.