2727public class FlexyPoolProperties {
2828
2929 private AcquisitionStrategy acquisitionStrategy = new AcquisitionStrategy ();
30- private AcquiringStrategy acquiringStrategy = new AcquiringStrategy ();
3130
3231 private Metrics metrics = new Metrics ();
3332 private Threshold threshold = new Threshold ();
@@ -48,16 +47,6 @@ public void setAcquisitionStrategy(AcquisitionStrategy acquisitionStrategy) {
4847 this .acquisitionStrategy = acquisitionStrategy ;
4948 }
5049
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-
6150 public void setMetrics (Metrics metrics ) {
6251 this .metrics = metrics ;
6352 }
@@ -120,91 +109,6 @@ public void setTimeoutMillis(int timeoutMillis) {
120109 }
121110 }
122111
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-
208112 public static class Metrics {
209113 private Reporter reporter = new Reporter ();
210114
@@ -301,22 +205,6 @@ public void setAcquisition(long acquisition) {
301205 public void setLease (long lease ) {
302206 this .lease = lease ;
303207 }
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- }
320208 }
321209 }
322210}
0 commit comments