Package io.quarkus.virtual.threads
Class FallbackVirtualThreadsExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
io.quarkus.virtual.threads.FallbackVirtualThreadsExecutorService
- All Implemented Interfaces:
Executor
,ExecutorService
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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
awaitTermination
(long timeout, TimeUnit unit) void
boolean
boolean
void
shutdown()
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
Constructor Details
-
FallbackVirtualThreadsExecutorService
FallbackVirtualThreadsExecutorService()
-
-
Method Details
-
execute
-
shutdown
public void shutdown() -
shutdownNow
-
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
awaitTermination
-