Module bus.http

Class NamedRunnable

java.lang.Object
org.miaixz.bus.http.metric.NamedRunnable
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
RealCall.AsyncCall

public abstract class NamedRunnable extends Object implements Runnable
可运行的实现,它总是设置它的线程名
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • name

      protected final String name
  • Constructor Details

    • NamedRunnable

      public NamedRunnable(String format, Object... args)
  • Method Details

    • run

      public final void run()
      Specified by:
      run in interface Runnable
    • execute

      protected abstract void execute()