Skip to content

Commit

Permalink
Deprecated PushRegistry's numThreads property
Browse files Browse the repository at this point in the history
This property is a left-over and was never used in Micrometer so this
commit deprecates its use so that it can be removed in the next feature
release.

Closes gh-20835
  • Loading branch information
snicoll committed Apr 5, 2020
1 parent 4641794 commit 1960c90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -92,10 +92,12 @@ public void setReadTimeout(Duration readTimeout) {
this.readTimeout = readTimeout;
}

@Deprecated
public Integer getNumThreads() {
return this.numThreads;
}

@Deprecated
public void setNumThreads(Integer numThreads) {
this.numThreads = numThreads;
}
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -57,6 +57,7 @@ public boolean enabled() {
}

@Override
@SuppressWarnings("deprecation")
public int numThreads() {
return get(T::getNumThreads, PushRegistryConfig.super::numThreads);
}
Expand Down

0 comments on commit 1960c90

Please sign in to comment.