27
27
public class FlexyPoolProperties {
28
28
29
29
private AcquisitionStrategy acquisitionStrategy = new AcquisitionStrategy ();
30
- private AcquiringStrategy acquiringStrategy = new AcquiringStrategy ();
31
30
32
31
private Metrics metrics = new Metrics ();
33
32
private Threshold threshold = new Threshold ();
@@ -48,16 +47,6 @@ public void setAcquisitionStrategy(AcquisitionStrategy acquisitionStrategy) {
48
47
this .acquisitionStrategy = acquisitionStrategy ;
49
48
}
50
49
51
- @ Deprecated (since = "1.10.0" , forRemoval = true )
52
- public AcquiringStrategy getAcquiringStrategy () {
53
- return acquiringStrategy ;
54
- }
55
-
56
- @ Deprecated (since = "1.10.0" , forRemoval = true )
57
- public void setAcquiringStrategy (AcquiringStrategy acquiringStrategy ) {
58
- this .acquiringStrategy = acquiringStrategy ;
59
- }
60
-
61
50
public void setMetrics (Metrics metrics ) {
62
51
this .metrics = metrics ;
63
52
}
@@ -120,91 +109,6 @@ public void setTimeoutMillis(int timeoutMillis) {
120
109
}
121
110
}
122
111
123
- @ Deprecated (since = "1.10.0" , forRemoval = true )
124
- public static class AcquiringStrategy {
125
- @ Deprecated (since = "1.10.0" , forRemoval = true )
126
- private Retry retry = new Retry ();
127
- @ Deprecated (since = "1.10.0" , forRemoval = true )
128
- private IncrementPool incrementPool = new IncrementPool ();
129
-
130
- @ Deprecated (since = "1.10.0" , forRemoval = true )
131
- public Retry getRetry () {
132
- return this .retry ;
133
- }
134
-
135
- @ Deprecated (since = "1.10.0" , forRemoval = true )
136
- public IncrementPool getIncrementPool () {
137
- return this .incrementPool ;
138
- }
139
-
140
- @ Deprecated (since = "1.10.0" , forRemoval = true )
141
- public void setRetry (Retry retry ) {
142
- this .retry = retry ;
143
- }
144
-
145
- @ Deprecated (since = "1.10.0" , forRemoval = true )
146
- public void setIncrementPool (IncrementPool incrementPool ) {
147
- this .incrementPool = incrementPool ;
148
- }
149
-
150
- public static class Retry {
151
- @ Deprecated (since = "1.10.0" , forRemoval = true )
152
- private Integer attempts ;
153
-
154
- @ Deprecated (since = "1.10.0" , forRemoval = true )
155
- @ DeprecatedConfigurationProperty (
156
- reason = "FlexyPool 3.0 has renamed this property" ,
157
- replacement = "decorator.datasource.flexy-pool.acquisition-strategy.retry.attempts" ,
158
- since = "1.10.0"
159
- )
160
- public Integer getAttempts () {
161
- return this .attempts ;
162
- }
163
-
164
- @ Deprecated (since = "1.10.0" , forRemoval = true )
165
- public void setAttempts (int attempts ) {
166
- this .attempts = attempts ;
167
- }
168
- }
169
-
170
- public static class IncrementPool {
171
- @ Deprecated (since = "1.10.0" , forRemoval = true )
172
- private Integer maxOverflowPoolSize ;
173
- @ Deprecated (since = "1.10.0" , forRemoval = true )
174
- private Integer timeoutMillis ;
175
-
176
- @ Deprecated (since = "1.10.0" , forRemoval = true )
177
- @ DeprecatedConfigurationProperty (
178
- reason = "FlexyPool 3.0 has renamed this property" ,
179
- replacement = "decorator.datasource.flexy-pool.acquisition-strategy.increment-pool.timeout-millis" ,
180
- since = "1.10.0"
181
- )
182
- public Integer getTimeoutMillis () {
183
- return this .timeoutMillis ;
184
- }
185
-
186
- @ Deprecated (since = "1.10.0" , forRemoval = true )
187
- @ DeprecatedConfigurationProperty (
188
- reason = "FlexyPool 3.0 has renamed this property" ,
189
- replacement = "decorator.datasource.flexy-pool.acquisition-strategy.increment-pool.max-overgrow-pool-size" ,
190
- since = "1.10.0"
191
- )
192
- public Integer getMaxOverflowPoolSize () {
193
- return this .maxOverflowPoolSize ;
194
- }
195
-
196
- @ Deprecated (since = "1.10.0" , forRemoval = true )
197
- public void setTimeoutMillis (int timeoutMillis ) {
198
- this .timeoutMillis = timeoutMillis ;
199
- }
200
-
201
- @ Deprecated (since = "1.10.0" , forRemoval = true )
202
- public void setMaxOverflowPoolSize (int maxOverflowPoolSize ) {
203
- this .maxOverflowPoolSize = maxOverflowPoolSize ;
204
- }
205
- }
206
- }
207
-
208
112
public static class Metrics {
209
113
private Reporter reporter = new Reporter ();
210
114
@@ -301,22 +205,6 @@ public void setAcquisition(long acquisition) {
301
205
public void setLease (long lease ) {
302
206
this .lease = lease ;
303
207
}
304
-
305
- @ Deprecated (since = "1.10.0" , forRemoval = true )
306
- @ DeprecatedConfigurationProperty (
307
- reason = "FlexyPool 3.0 has renamed this property" ,
308
- replacement = "decorator.datasource.flexy-pool.threshold.connection.acquisition" ,
309
- since = "1.10.0"
310
- )
311
- public long getAcquire () {
312
- return this .acquisition ;
313
- }
314
-
315
-
316
- @ Deprecated (since = "1.10.0" , forRemoval = true )
317
- public void setAcquire (long acquire ) {
318
- this .acquisition = acquire ;
319
- }
320
208
}
321
209
}
322
210
}
0 commit comments