diff --git a/amazon-kinesis-client/src/main/java/software/amazon/kinesis/leases/LeaseManagementConfig.java b/amazon-kinesis-client/src/main/java/software/amazon/kinesis/leases/LeaseManagementConfig.java index ccaa2ec9..a56a6d5e 100644 --- a/amazon-kinesis-client/src/main/java/software/amazon/kinesis/leases/LeaseManagementConfig.java +++ b/amazon-kinesis-client/src/main/java/software/amazon/kinesis/leases/LeaseManagementConfig.java @@ -170,11 +170,39 @@ public class LeaseManagementConfig { private long listShardsCacheAllowedAgeInSeconds = 30; private int cacheMissWarningModulus = 250; - /** - * - */ private MetricsFactory metricsFactory = new NullMetricsFactory(); + /** + * Returns the metrics factory. + * + *
+ * NOTE: This method is deprecated and will be removed in a future release. This metrics factory is not being used + * in the KCL. + *
+ * + * @return + */ + @Deprecated + public MetricsFactory metricsFactory() { + return metricsFactory; + } + + /** + * Sets the metrics factory. + * + *+ * NOTE: This method is deprecated and will be removed in a future release. This metrics factory is not being used + * in the KCL. + *
+ * + * @param metricsFactory + */ + @Deprecated + public LeaseManagementConfig metricsFactory(final MetricsFactory metricsFactory) { + this.metricsFactory = metricsFactory; + return this; + } + /** * The {@link ExecutorService} to be used by {@link ShardSyncTaskManager}. *