类 DefaultSentinelJaxRsFallback

java.lang.Object
com.alibaba.csp.sentinel.adapter.jaxrs.fallback.DefaultSentinelJaxRsFallback
所有已实现的接口:
SentinelJaxRsFallback

public class DefaultSentinelJaxRsFallback extends Object implements SentinelJaxRsFallback
作者:
sea
  • 构造器详细资料

    • DefaultSentinelJaxRsFallback

      public DefaultSentinelJaxRsFallback()
  • 方法详细资料

    • fallbackResponse

      public javax.ws.rs.core.Response fallbackResponse(String route, Throwable cause)
      从接口复制的说明: SentinelJaxRsFallback
      Provides a fallback response based on the cause of the failed execution.
      指定者:
      fallbackResponse 在接口中 SentinelJaxRsFallback
      参数:
      route - The route the fallback is for
      cause - cause of the main method failure, may be null
      返回:
      the fallback response
    • fallbackFutureResponse

      public Future<javax.ws.rs.core.Response> fallbackFutureResponse(String route, Throwable cause)
      从接口复制的说明: SentinelJaxRsFallback
      Provides a fallback response future based on the cause of the failed execution.
      指定者:
      fallbackFutureResponse 在接口中 SentinelJaxRsFallback
      参数:
      route - The route the fallback is for
      cause - cause of the main method failure, may be null
      返回:
      the fallback response future