Package com.iizix.virtual
Class VirtualThreads
java.lang.Object
com.iizix.virtual.VirtualThreads
Support for better concurrency support in IIZI by means of VirtualThreads Threads in the JVM.
It is the early form of virtual threads for the IIZI system supported by Java 19 and better. Functionality to support it must be enabled as "--enabled-preview" as a parameter to the JVM.
A property "iizi.virtualthreads=false" will turn off the support regardless of JVM settings, e.g. using the Java parameter -Diizi.virtualthreads=false
.
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionstatic IVirtualThreads
Gets the VirtualThreads implementation depending on if the Java option-Diizi.virtualthreads=false
is set or not (or set totrue
).
Constructor Details
VirtualThreads
public VirtualThreads()
Method Details
getVirtualThreads
Gets the VirtualThreads implementation depending on if the Java option-Diizi.virtualthreads=false
is set or not (or set totrue
).- Returns:
- The IVirtualThreads implementation using Virtual Threads or Platform Threads.