Class ThreadCreator
java.lang.Object
org.jgroups.util.ThreadCreator
Helper class to create regular or virtual threads. Virtual threads are not supported for versions less than Java 17.
- Author:
- Bela Ban
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadcreateThread(Runnable r, String name, boolean daemon, boolean virtual) protected static MethodHandleprotected static Class<?> static booleanprotected static Thread
-
Constructor Details
-
ThreadCreator
public ThreadCreator()
-
-
Method Details
-
hasVirtualThreads
public static boolean hasVirtualThreads() -
createThread
-
newVirtualThread
-
getCreateVThreadHandle
-
getOfVirtualClass
-