Class VirtualThreadPool

java.lang.Object
io.avaje.jex.jetty.threadpool.VirtualThreadPool
All Implemented Interfaces:
Executor, org.eclipse.jetty.util.thread.ThreadPool

public class VirtualThreadPool extends Object implements org.eclipse.jetty.util.thread.ThreadPool
Loom Virtual threads based Jetty ThreadPool.
  • Constructor Details

    • VirtualThreadPool

      public VirtualThreadPool()
  • Method Details

    • execute

      public void execute(Runnable command)
      Specified by:
      execute in interface Executor
    • join

      public void join()
      Specified by:
      join in interface org.eclipse.jetty.util.thread.ThreadPool
    • getThreads

      public int getThreads()
      Specified by:
      getThreads in interface org.eclipse.jetty.util.thread.ThreadPool
    • getIdleThreads

      public int getIdleThreads()
      Specified by:
      getIdleThreads in interface org.eclipse.jetty.util.thread.ThreadPool
    • isLowOnThreads

      public boolean isLowOnThreads()
      Specified by:
      isLowOnThreads in interface org.eclipse.jetty.util.thread.ThreadPool