Skip to content

Commit

Permalink
aws: deprecate classes (#1142)
Browse files Browse the repository at this point in the history
Deprecate these classe to encourage users to transition
to V2 before [AWS support for V1] ends.

[AWS support for V1]: https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-java-v1-x-on-december-31-2025/
  • Loading branch information
brharrington committed Jul 10, 2024
1 parent b0fa0cc commit 8bf61eb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@

/**
* A MetricCollector that captures SDK metrics.
*
* @deprecated Users should migrate to AWS SDK for Java V2. AWS will drop support
* for V1 after 2025.
*/
@Deprecated
public class SpectatorMetricCollector extends MetricCollector {
private final RequestMetricCollector requestMetricCollector;
private final ServiceMetricCollector serviceMetricCollector;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@

/**
* A {@link RequestMetricCollector} that captures request level metrics for AWS clients.
*
* @deprecated Users should migrate to AWS SDK for Java V2. AWS will drop support
* for V1 after 2025.
*/
@Deprecated
public class SpectatorRequestMetricCollector extends RequestMetricCollector {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
/**
* A {@link ServiceMetricCollector} that captures the time it takes to get a connection
* from the pool.
*
* @deprecated Users should migrate to AWS SDK for Java V2. AWS will drop support
* for V1 after 2025.
*/
@Deprecated
class SpectatorServiceMetricCollector extends ServiceMetricCollector {

private final Timer clientGetConnectionTime;
Expand Down

0 comments on commit 8bf61eb

Please sign in to comment.