Class NamedRunnable

java.lang.Object
com.squareup.okhttp.internal.NamedRunnable
All Implemented Interfaces:
Runnable

public abstract class NamedRunnable
extends Object
implements Runnable
Runnable implementation which always sets its thread name.
  • Constructor Details

    • NamedRunnable

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

    • run

      public final void run()
      Description copied from interface: Runnable
      Starts executing the active part of the class' code. This method is called when a thread is started that has been created with a class which implements Runnable.
      Specified by:
      run in interface Runnable
    • execute

      protected abstract void execute()