Class NamedRunnable

  • All Implemented Interfaces:
    Runnable


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

      • name

        protected final String name
    • Constructor Detail

      • NamedRunnable

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

      • run

        public final void run()
      • execute

        protected abstract void execute()