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

com.github.lianjiatech.retrofit.spring.boot.degrade.FallbackFactory Maven / Gradle / Ivy

The newest version!
package com.github.lianjiatech.retrofit.spring.boot.degrade;

/**
 * @author 陈添明
 * @param  the retrofit interface type
 */
public interface FallbackFactory {

    /**
     * Returns an instance of the fallback appropriate for the given cause
     *
     * @param cause fallback cause
     * @return 实现了retrofit接口的实例。an instance that implements the retrofit interface.
     */
    T create(Throwable cause);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy