JAVA-26727: Update the resilience4j-timelimiter library (#15277)

* JAVA-26727: Update libraries-6 to a new version of resilience4j dependencies.

* JAVA-26727: Update spring-rest-http-2 to a new version of resilience4j dependencies.
This commit is contained in:
Harry9656 2023-11-24 16:58:47 +01:00 committed by GitHub
parent 6b2a212fa5
commit a2acd64779
3 changed files with 4 additions and 4 deletions

View File

@ -197,7 +197,7 @@
<javapoet.version>1.10.0</javapoet.version>
<mockftpserver.version>2.7.1</mockftpserver.version>
<functionaljava.version>4.8.1</functionaljava.version>
<resilience4j.version>0.12.1</resilience4j.version>
<resilience4j.version>2.1.0</resilience4j.version>
<protonpack.version>1.15</protonpack.version>
<commons-net.version>3.6</commons-net.version>
<renjin.version>3.5-beta72</renjin.version>

View File

@ -43,7 +43,7 @@ public class Resilience4jUnitTest {
// Percentage of failures to start short-circuit
.failureRateThreshold(20)
// Min number of call attempts
.ringBufferSizeInClosedState(5)
.slidingWindowSize(5)
.build();
CircuitBreakerRegistry registry = CircuitBreakerRegistry.of(config);
CircuitBreaker circuitBreaker = registry.circuitBreaker("my");
@ -70,7 +70,7 @@ public class Resilience4jUnitTest {
Future<?> taskInProgress = callAndBlock(decorated);
try {
assertThat(bulkhead.isCallPermitted()).isFalse();
assertThat(bulkhead.tryAcquirePermission()).isFalse();
} finally {
taskInProgress.cancel(true);
}

View File

@ -51,7 +51,7 @@
<properties>
<swagger2.version>2.9.2</swagger2.version>
<resilience4j.version>1.6.1</resilience4j.version>
<resilience4j.version>2.1.0</resilience4j.version>
<springdoc.version>1.7.0</springdoc.version>
</properties>