I'm trying to update net.jodah.failsafe from 1.0.4 to 2.4.4. I have code that uses SyncFailSafe and BiPredicate classes, which don't seem to be available anymore in 2.4.4. What would be the replacement for that? Many times there is a direct replacement when updating libraries, but I can't seem to find anything online. I appreciate your help!
Edit. Thanks Matt. java.util's BiPredicate seems to be the replacement for that one.
For SyncFailsafe, usage is very simple. example code:
public <T> SyncFailsafe<T> create() {
RetryPolicy retryPolicy = ... // some code to create it.
return Failsafe.with(retryPolicy);
}
in the code:
create().run(() -> {
// makes a REST request and and sets a value to the GetCallResponse object
}
this used to return SyncFailsafe. I'm seeing it is now returning FailsafeExecutor, but I'm not sure if it's the same thing...