Skip to content

Commit e68b4c5

Browse files
author
Nick Luchsinger
committed
Deprecate getter and setter for unused collapsingEnabled property in Collapser Setter.
1 parent 9d64acc commit e68b4c5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

hystrix-core/src/main/java/com/netflix/hystrix/HystrixCollapserProperties.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public static Setter defaultSetter() {
213213
* @NotThreadSafe
214214
*/
215215
public static class Setter {
216-
private Boolean collapsingEnabled = null;
216+
@Deprecated private Boolean collapsingEnabled = null;
217217
private Integer maxRequestsInBatch = null;
218218
private Integer timerDelayInMilliseconds = null;
219219
private Boolean requestCacheEnabled = null;
@@ -227,6 +227,10 @@ public static class Setter {
227227
private Setter() {
228228
}
229229

230+
/**
231+
* Deprecated because the collapsingEnabled setting doesn't do anything.
232+
*/
233+
@Deprecated
230234
public Boolean getCollapsingEnabled() {
231235
return collapsingEnabled;
232236
}
@@ -267,7 +271,10 @@ public Integer getMetricsRollingPercentileWindowBuckets() {
267271
return metricsRollingPercentileWindowBuckets;
268272
}
269273

270-
274+
/**
275+
* Deprecated because the collapsingEnabled setting doesn't do anything.
276+
*/
277+
@Deprecated
271278
public Setter withCollapsingEnabled(boolean value) {
272279
this.collapsingEnabled = value;
273280
return this;

0 commit comments

Comments
 (0)