public class VirtualThreadExecutor
extends java.util.concurrent.AbstractExecutorService
| Constructor and Description |
|---|
VirtualThreadExecutor(java.lang.String namePrefix) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit)
The VirtualThreadExecutor does not track in-progress tasks so calling this method is effectively waiting for
shutdown() to be called. |
void |
execute(java.lang.Runnable command) |
boolean |
isShutdown() |
boolean |
isTerminated()
The VirtualThreadExecutor does not track in-progress tasks so calling this method is equivalent to calling
isShutdown(). |
void |
shutdown() |
java.util.List<java.lang.Runnable> |
shutdownNow()
The VirtualThreadExecutor does not track in-progress tasks so calling this method is equivalent to calling
shutdown(). |
public void execute(java.lang.Runnable command)
public void shutdown()
public java.util.List<java.lang.Runnable> shutdownNow()
The VirtualThreadExecutor does not track in-progress tasks so calling this method is equivalent to calling
shutdown().
public boolean isShutdown()
public boolean isTerminated()
The VirtualThreadExecutor does not track in-progress tasks so calling this method is equivalent to calling
isShutdown().
public boolean awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
The VirtualThreadExecutor does not track in-progress tasks so calling this method is effectively waiting for
shutdown() to be called.
java.lang.InterruptedExceptionCopyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.