java.lang.Object
org.miaixz.bus.http.metric.NamedRunnable
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
RealCall.AsyncCall
An abstract
Runnable implementation that always sets its thread name.- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNamedRunnable(String format, Object... args) Constructs a newNamedRunnablewith a formatted name. -
Method Summary
-
Field Details
-
name
The name of the runnable, which will be set as the thread name.
-
-
Constructor Details
-
NamedRunnable
Constructs a newNamedRunnablewith a formatted name.- Parameters:
format- The format string for the name.args- The arguments for the format string.
-
-
Method Details