类 SentinelJaxRsClientTemplate

java.lang.Object
com.alibaba.csp.sentinel.adapter.jaxrs.SentinelJaxRsClientTemplate

public class SentinelJaxRsClientTemplate extends Object
wrap jax-rs client execution with sentinel
         Response response = SentinelJaxRsClientTemplate.execute(resourceName, new Supplier() {
作者:
sea
  • 构造器详细资料

    • SentinelJaxRsClientTemplate

      public SentinelJaxRsClientTemplate()
  • 方法详细资料

    • execute

      public static javax.ws.rs.core.Response execute(String resourceName, com.alibaba.csp.sentinel.util.function.Supplier<javax.ws.rs.core.Response> supplier)
      execute supplier with sentinel
      参数:
      resourceName -
      supplier -
      返回:
    • executeAsync

      public static Future<javax.ws.rs.core.Response> executeAsync(String resourceName, com.alibaba.csp.sentinel.util.function.Supplier<Future<javax.ws.rs.core.Response>> supplier)
      execute supplier with sentinel
      参数:
      resourceName -
      supplier -
      返回: