Package org.burningwave.core.concurrent
Class Thread.Holder
java.lang.Object
org.burningwave.core.concurrent.Thread.Holder
- All Implemented Interfaces:
AutoCloseable,Closeable,Identifiable,ManagedLogger
- Enclosing class:
- Thread
public static class Thread.Holder extends Object implements Closeable, ManagedLogger
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.burningwave.core.ManagedLogger
ManagedLogger.Repository -
Constructor Summary
Constructors Constructor Description Holder()Holder(Thread.Supplier threadSupplier) -
Method Summary
Modifier and Type Method Description voidclose()booleanisAlive(String threadName)voidjoin(String threadName)Stringstart(boolean isDaemon, int priority, Consumer<Thread> executable)voidstart(String threadName, boolean isDaemon, int priority, Consumer<Thread> executable)StringstartLooping(boolean isDaemon, int priority, Consumer<Thread> executable)voidstartLooping(String threadName, boolean isDaemon, int priority, Consumer<Thread> executable)voidstop(String threadName)voidstop(String threadName, boolean waitThreadToFinish)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.burningwave.core.Closeable
closeResources, closeResources, createCloseResoucesTask, createCloseResoucesTaskMethods inherited from interface org.burningwave.core.Identifiable
getId, getOperationId
-
Constructor Details
-
Holder
public Holder() -
Holder
-
-
Method Details
-
startLooping
-
start
-
startLooping
-
start
-
stop
-
stop
-
join
-
isAlive
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-