VirtualThread Reactor ThreadFactory to be
used with ThreadPerTaskBoundedElasticScheduler. It throws exceptions when is
being created, so it indicates that current Java Runtime does not support
VirtualThreads.
| Access | Constructor and Description |
|---|---|
| pack-priv | VirtualThreadFactory(String name, boolean inheritThreadLocals, BiConsumer<Thread, Throwable> uncaughtExceptionHandler)
|
| Modifier and Type | Method and Description |
|---|---|
| public final Thread | newThread(Runnable
a runnable to be executed by new thread instance runnable)Implements java. Thread to run the given runnable.
|
| public void | uncaughtException(Thread
the thread t, Throwable the exception e)Implements java. |
| VirtualThreadFactory | back to summary |
|---|---|
| pack-priv VirtualThreadFactory(String name, boolean inheritThreadLocals, BiConsumer<Thread, Throwable> uncaughtExceptionHandler) | |
| newThread | back to summary |
|---|---|
| public final Thread newThread(Runnable runnable) Implements java. Doc from java. Constructs a new unstarted | |
| uncaughtException | back to summary |
|---|---|
| public void uncaughtException(Thread t, Throwable e) Implements java. Doc from java. Method invoked when the given thread terminates due to the given uncaught exception. Any exception thrown by this method will be ignored by the Java Virtual Machine. | |