forked from resilience4j/resilience4j
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue resilience4j#1043: Allow the configuration of a IntervalBiFunct…
…ion in Spring Boot2 (resilience4j#1235)
- Loading branch information
1 parent
9aa18f8
commit bf636b9
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...-framework-common/src/test/java/io/github/resilience4j/common/TestIntervalBiFunction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package io.github.resilience4j.common; | ||
|
||
import io.github.resilience4j.core.IntervalBiFunction; | ||
import io.vavr.control.Either; | ||
|
||
public class TestIntervalBiFunction implements IntervalBiFunction<Object> { | ||
@Override | ||
public Long apply(Integer integer, Either<Throwable, Object> objects) { | ||
return 200L; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters