Class FallbackVirtualThreadsExecutorService

java.lang.Object
java.util.concurrent.AbstractExecutorService
io.quarkus.virtual.threads.FallbackVirtualThreadsExecutorService
All Implemented Interfaces:
Executor, ExecutorService

class FallbackVirtualThreadsExecutorService extends AbstractExecutorService
Fallback executor service implementation in case the virtual threads are disabled or not available on the current platform.

Executes tasks on the current Vert.x context worker pool, or when not available, on the Mutiny Infrastructure default worker pool Shutdown methods are no-op as the executor service is a wrapper around these previous execute methods.

  • Constructor Details

    • FallbackVirtualThreadsExecutorService

      FallbackVirtualThreadsExecutorService()
  • Method Details

    • execute

      public void execute(Runnable command)
    • shutdown

      public void shutdown()
    • shutdownNow

      public List<Runnable> shutdownNow()
    • isShutdown

      public boolean isShutdown()
    • isTerminated

      public boolean isTerminated()
    • awaitTermination

      public boolean awaitTermination(long timeout, TimeUnit unit)