'Kotlin with resilience4j for the async Call

I have my client code to make the http request to get the response like below

fun postRequest(request: HttpRequest?, callback: FutureCallback?): Future

I have been trying to use the circuit breaker with timelimiter but I could not find the exact method to use from resilience4j

Any help is appreciated

Note: My code is based on kotlin not in Spring



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source