Skip to content

Commit d0b88ac

Browse files
committed
.properties -> .yml
1 parent 597844a commit d0b88ac

File tree

2 files changed

+51
-35
lines changed

2 files changed

+51
-35
lines changed

resilience4j/springboot-resilience4j/src/main/resources/application.properties

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
resilience4j:
2+
retry:
3+
instances:
4+
5+
# Retry object used in RetryingService.basicExample()
6+
basic:
7+
maxRetryAttempts: 3
8+
waitDuration: 2s
9+
10+
# Retry object used in RetryingService.fallbackExample()
11+
fallbackExample:
12+
maxRetryAttempts: 3
13+
waitDuration: 2s
14+
15+
# Retry object used in RetryingService.intervalFunctionExponentialExample()
16+
intervalFunctionExponentialExample:
17+
enableExponentialBackoff: true
18+
exponentialBackoffMultiplier: 2
19+
maxRetryAttempts: 6
20+
waitDuration: 1s
21+
22+
# Retry object used in RetryingService.intervalFunctionRandomExample()
23+
intervalFunctionRandomExample:
24+
enableRandomizedWait: true
25+
maxRetryAttempts: 3
26+
randomizedWaitFactor: 0.5
27+
waitDuration: 2s
28+
29+
# Retry object used in RetryingService.loggedRetryExample()
30+
loggedRetryExample:
31+
maxRetryAttempts: 3
32+
waitDuration: 2s
33+
34+
# Retry object used in RetryingService.predicateExample()
35+
predicateExample:
36+
maxRetryAttempts: 3
37+
resultPredicate: io.reflectoring.resilience4j.springboot.predicates.ConditionalRetryPredicate
38+
waitDuration: 3s
39+
40+
# Retry object used in RetryingService.basicExample_serviceThrowingException()
41+
throwingException:
42+
maxRetryAttempts: 3
43+
retryExceptions:
44+
- java.lang.Exception
45+
waitDuration: 2s
46+
47+
management:
48+
endpoints:
49+
web:
50+
exposure:
51+
include: '*'

0 commit comments

Comments
 (0)