Cleaning up LeaseManagementConfig (#366)
* Cleaning up LeaseManagementConfig:
* Removing unused metrics factory variable from LeaseManagementConfig.
* Revert "Cleaning up LeaseManagementConfig:"
This reverts commit b16ba37966.
* Deprecating metrics factory in LeaseManagementConfig
* Marking metrics factory in LeaseManagementConfig for deprecation
This commit is contained in:
parent
6973152f60
commit
205cf051f3
1 changed files with 31 additions and 3 deletions
|
|
@ -170,11 +170,39 @@ public class LeaseManagementConfig {
|
||||||
private long listShardsCacheAllowedAgeInSeconds = 30;
|
private long listShardsCacheAllowedAgeInSeconds = 30;
|
||||||
private int cacheMissWarningModulus = 250;
|
private int cacheMissWarningModulus = 250;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
private MetricsFactory metricsFactory = new NullMetricsFactory();
|
private MetricsFactory metricsFactory = new NullMetricsFactory();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the metrics factory.
|
||||||
|
*
|
||||||
|
* <p>
|
||||||
|
* NOTE: This method is deprecated and will be removed in a future release. This metrics factory is not being used
|
||||||
|
* in the KCL.
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public MetricsFactory metricsFactory() {
|
||||||
|
return metricsFactory;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the metrics factory.
|
||||||
|
*
|
||||||
|
* <p>
|
||||||
|
* NOTE: This method is deprecated and will be removed in a future release. This metrics factory is not being used
|
||||||
|
* in the KCL.
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @param metricsFactory
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public LeaseManagementConfig metricsFactory(final MetricsFactory metricsFactory) {
|
||||||
|
this.metricsFactory = metricsFactory;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The {@link ExecutorService} to be used by {@link ShardSyncTaskManager}.
|
* The {@link ExecutorService} to be used by {@link ShardSyncTaskManager}.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue