java.lang.Object
org.miaixz.bus.http.metric.NamedRunnable
org.miaixz.bus.http.RealCall.AsyncCall
- All Implemented Interfaces:
Runnable
- Enclosing class:
RealCall
An asynchronous call that can be executed on a background thread.
-
Field Summary
Fields inherited from class org.miaixz.bus.http.metric.NamedRunnable
name -
Method Summary
Modifier and TypeMethodDescriptionReturns the number of calls per host.protected voidexecute()Executes the asynchronous call.voidexecuteOn(ExecutorService executorService) Executes this asynchronous call on the given executor service.get()Returns theRealCallinstance for this asynchronous call.host()Returns the hostname for this call.voidReuses the host call count from another asynchronous call.Methods inherited from class org.miaixz.bus.http.metric.NamedRunnable
run
-
Method Details
-
callsPerHost
Returns the number of calls per host.- Returns:
- The number of calls per host.
-
reuseCallsPerHostFrom
Reuses the host call count from another asynchronous call.- Parameters:
other- The other asynchronous call.
-
host
Returns the hostname for this call.- Returns:
- The hostname.
-
get
Returns theRealCallinstance for this asynchronous call.- Returns:
- The
RealCallinstance.
-
executeOn
Executes this asynchronous call on the given executor service.- Parameters:
executorService- The executor service.
-
execute
protected void execute()Executes the asynchronous call.- Specified by:
executein classNamedRunnable
-