接口 SentinelJaxRsFallback

所有已知实现类:
DefaultSentinelJaxRsFallback

public interface SentinelJaxRsFallback
作者:
sea
  • 方法概要

    修饰符和类型
    方法
    说明
    Future<javax.ws.rs.core.Response>
    Provides a fallback response future based on the cause of the failed execution.
    javax.ws.rs.core.Response
    Provides a fallback response based on the cause of the failed execution.
  • 方法详细资料

    • fallbackResponse

      javax.ws.rs.core.Response fallbackResponse(String route, Throwable cause)
      Provides a fallback response based on the cause of the failed execution.
      参数:
      route - The route the fallback is for
      cause - cause of the main method failure, may be null
      返回:
      the fallback response
    • fallbackFutureResponse

      Future<javax.ws.rs.core.Response> fallbackFutureResponse(String route, Throwable cause)
      Provides a fallback response future based on the cause of the failed execution.
      参数:
      route - The route the fallback is for
      cause - cause of the main method failure, may be null
      返回:
      the fallback response future