ru.tinkoff.kora.resilient.fallback.Fallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resilient-kora Show documentation
Show all versions of resilient-kora Show documentation
Kora resilient-kora module
The newest version!
package ru.tinkoff.kora.resilient.fallback;
import jakarta.annotation.Nonnull;
import java.util.function.Supplier;
public interface Fallback {
boolean canFallback(@Nonnull Throwable throwable);
void fallback(@Nonnull Runnable runnable, @Nonnull Runnable fallback);
T fallback(@Nonnull Supplier supplier, @Nonnull Supplier fallback);
}