接口 SentinelJaxRsFallback
- 所有已知实现类:
DefaultSentinelJaxRsFallback
public interface SentinelJaxRsFallback
- 作者:
- sea
-
方法概要
修饰符和类型方法说明Future<javax.ws.rs.core.Response> fallbackFutureResponse(String route, Throwable cause) Provides a fallback response future based on the cause of the failed execution.javax.ws.rs.core.ResponsefallbackResponse(String route, Throwable cause) Provides a fallback response based on the cause of the failed execution.
-
方法详细资料
-
fallbackResponse
Provides a fallback response based on the cause of the failed execution.- 参数:
route- The route the fallback is forcause- cause of the main method failure, may benull- 返回:
- the fallback response
-
fallbackFutureResponse
Provides a fallback response future based on the cause of the failed execution.- 参数:
route- The route the fallback is forcause- cause of the main method failure, may benull- 返回:
- the fallback response future
-