Class Thread.Holder

java.lang.Object
org.burningwave.core.concurrent.Thread.Holder
All Implemented Interfaces:
AutoCloseable, Closeable, Identifiable
Enclosing class:
Thread

public static class Thread.Holder extends Object implements Closeable
  • Method Details

    • create

      public static Thread.Holder create(Thread.Supplier supplier, boolean undestroyable)
    • startLooping

      public String startLooping(boolean isDaemon, int priority, Consumer<Thread> executable)
    • start

      public String start(boolean isDaemon, int priority, Consumer<Thread> executable)
    • startLooping

      public void startLooping(String threadName, boolean isDaemon, int priority, Consumer<Thread> executable)
    • start

      public void start(String threadName, boolean isDaemon, int priority, Consumer<Thread> executable)
    • stop

      public void stop(String threadName)
    • stop

      public void stop(String threadName, boolean waitThreadToFinish)
    • join

      public void join(String threadName)
    • isAlive

      public boolean isAlive(String threadName)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable