java.lang.Object
org.miaixz.bus.http.metric.NamedRunnable
org.miaixz.bus.http.RealCall.AsyncCall
- All Implemented Interfaces:
Runnable
- Enclosing class:
RealCall
异步调用类
-
Field Summary
Fields inherited from class org.miaixz.bus.http.metric.NamedRunnable
name -
Method Summary
Modifier and TypeMethodDescription获取主机调用计数protected voidexecute()执行异步调用voidexecuteOn(ExecutorService executorService) 在执行器服务上执行异步调用get()获取 RealCall 实例host()获取主机名void重用其他异步调用的主机计数Methods inherited from class org.miaixz.bus.http.metric.NamedRunnable
run
-
Method Details
-
callsPerHost
获取主机调用计数- Returns:
- 主机调用计数
-
reuseCallsPerHostFrom
重用其他异步调用的主机计数- Parameters:
other- 其他异步调用
-
host
获取主机名- Returns:
- 主机名
-
get
获取 RealCall 实例- Returns:
- RealCall 实例
-
executeOn
在执行器服务上执行异步调用- Parameters:
executorService- 执行器服务
-
execute
protected void execute()执行异步调用- Specified by:
executein classNamedRunnable
-