All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.kora.resilient.fallback.Fallback Maven / Gradle / Ivy

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy