VirtualThreadExecutor (Apache Tomcat 8.5.94 API Documentation)

Package org.apache.tomcat.util.threads

## Class VirtualThreadExecutor

- java.lang.Object
- - org.apache.tomcat.util.threads.VirtualThreadExecutor

- All Implemented Interfaces:
    `java.util.concurrent.Executor`

      public class VirtualThreadExecutor
      extends java.lang.Object
      implements java.util.concurrent.Executor

  An executor that uses a new virtual thread for each task.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `VirtualThreadExecutor​(java.lang.String namePrefix)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `execute​(java.lang.Runnable command)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### VirtualThreadExecutor

          public VirtualThreadExecutor​(java.lang.String namePrefix)

  - ### Method Detail

    - #### execute

          public void execute​(java.lang.Runnable command)

      Specified by:
        `execute` in interface `java.util.concurrent.Executor`