I have this Hystrix code which I want to migrate to resilience4j:
@ExceptionHandler(HystrixRuntimeException.class)
public ResponseEntity<?> handleHystrixException(HystrixRuntimeException hystrixException) {
if (HystrixRuntimeException.FailureType.TIMEOUT == hystrixException.getFailureType()) {
return new InternalTimeoutException();
}
}
I can’t find how to replace HystrixRuntimeException in resilience4j. Do you know how it should be replaced?