类 SentinelJaxRsClientTemplate
java.lang.Object
com.alibaba.csp.sentinel.adapter.jaxrs.SentinelJaxRsClientTemplate
wrap jax-rs client execution with sentinel
Response response = SentinelJaxRsClientTemplate.execute(resourceName, new Supplier() {
- 作者:
- sea
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static javax.ws.rs.core.Responseexecute(String resourceName, com.alibaba.csp.sentinel.util.function.Supplier<javax.ws.rs.core.Response> supplier) execute supplier with sentinelstatic 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
-
构造器详细资料
-
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-- 返回:
-