Package io.quarkus.virtual.threads
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 Summary
Constructors Constructor Description FallbackVirtualThreadsExecutorService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long timeout, TimeUnit unit)voidexecute(Runnable command)booleanisShutdown()booleanisTerminated()voidshutdown()List<Runnable>shutdownNow()-
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
-