|
20 | 20 | import java.util.Map;
|
21 | 21 |
|
22 | 22 | import org.springframework.boot.context.properties.ConfigurationProperties;
|
23 |
| -import org.springframework.boot.context.properties.DeprecatedConfigurationProperty; |
24 | 23 | import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
25 | 24 |
|
26 | 25 | /**
|
@@ -110,28 +109,6 @@ public ClientRequest getRequest() {
|
110 | 109 | return this.request;
|
111 | 110 | }
|
112 | 111 |
|
113 |
| - /** |
114 |
| - * Return the name of the metric for client requests. |
115 |
| - * @return request metric name |
116 |
| - * @deprecated since 2.2.0 in favor of {@link ClientRequest#getMetricName()} |
117 |
| - */ |
118 |
| - @Deprecated |
119 |
| - @DeprecatedConfigurationProperty(replacement = "management.metrics.web.client.request.metric-name") |
120 |
| - public String getRequestsMetricName() { |
121 |
| - return this.request.getMetricName(); |
122 |
| - } |
123 |
| - |
124 |
| - /** |
125 |
| - * Set the name of the metric for client requests. |
126 |
| - * @param requestsMetricName request metric name |
127 |
| - * @deprecated since 2.2.0 in favor of |
128 |
| - * {@link ClientRequest#setMetricName(String)} |
129 |
| - */ |
130 |
| - @Deprecated |
131 |
| - public void setRequestsMetricName(String requestsMetricName) { |
132 |
| - this.request.setMetricName(requestsMetricName); |
133 |
| - } |
134 |
| - |
135 | 112 | public int getMaxUriTags() {
|
136 | 113 | return this.maxUriTags;
|
137 | 114 | }
|
@@ -184,50 +161,6 @@ public ServerRequest getRequest() {
|
184 | 161 | return this.request;
|
185 | 162 | }
|
186 | 163 |
|
187 |
| - /** |
188 |
| - * Return whether server requests should be automatically timed. |
189 |
| - * @return {@code true} if server request should be automatically timed |
190 |
| - * @deprecated since 2.2.0 in favor of {@link AutoTimeProperties#isEnabled()} |
191 |
| - */ |
192 |
| - @DeprecatedConfigurationProperty(replacement = "management.metrics.web.server.request.autotime.enabled") |
193 |
| - @Deprecated |
194 |
| - public boolean isAutoTimeRequests() { |
195 |
| - return this.request.getAutotime().isEnabled(); |
196 |
| - } |
197 |
| - |
198 |
| - /** |
199 |
| - * Set whether server requests should be automatically timed. |
200 |
| - * @param autoTimeRequests whether server requests should be automatically |
201 |
| - * timed |
202 |
| - * @deprecated since 2.2.0 in favor of {@link AutoTimeProperties#isEnabled()} |
203 |
| - */ |
204 |
| - @Deprecated |
205 |
| - public void setAutoTimeRequests(boolean autoTimeRequests) { |
206 |
| - this.request.getAutotime().setEnabled(autoTimeRequests); |
207 |
| - } |
208 |
| - |
209 |
| - /** |
210 |
| - * Return name of the metric for server requests. |
211 |
| - * @return request metric name |
212 |
| - * @deprecated since 2.2.0 in favor of {@link ServerRequest#getMetricName()} |
213 |
| - */ |
214 |
| - @DeprecatedConfigurationProperty(replacement = "management.metrics.web.server.request.metric-name") |
215 |
| - @Deprecated |
216 |
| - public String getRequestsMetricName() { |
217 |
| - return this.request.getMetricName(); |
218 |
| - } |
219 |
| - |
220 |
| - /** |
221 |
| - * Set the name of the metric for server requests. |
222 |
| - * @param requestsMetricName request metric name |
223 |
| - * @deprecated since 2.2.0 in favor of |
224 |
| - * {@link ServerRequest#setMetricName(String)} |
225 |
| - */ |
226 |
| - @Deprecated |
227 |
| - public void setRequestsMetricName(String requestsMetricName) { |
228 |
| - this.request.setMetricName(requestsMetricName); |
229 |
| - } |
230 |
| - |
231 | 164 | public int getMaxUriTags() {
|
232 | 165 | return this.maxUriTags;
|
233 | 166 | }
|
|
0 commit comments