Package io.quarkus.virtual.threads
Class DelegatingExecutorService
java.lang.Object
io.quarkus.runtime.util.ForwardingExecutorService
io.quarkus.virtual.threads.DelegatingExecutorService
- All Implemented Interfaces:
Executor,ExecutorService
class DelegatingExecutorService
extends io.quarkus.runtime.util.ForwardingExecutorService
An implementation of
ExecutorService that delegates to the real executor, while disallowing termination.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long timeout, TimeUnit unit) protected ExecutorServicedelegate()booleanbooleanvoidshutdown()toString()Methods inherited from class io.quarkus.runtime.util.ForwardingExecutorService
execute, invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit
-
Constructor Details
-
DelegatingExecutorService
DelegatingExecutorService(ExecutorService delegate)
-
-
Method Details
-
delegate
- Specified by:
delegatein classio.quarkus.runtime.util.ForwardingExecutorService
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceExecutorService- Overrides:
isShutdownin classio.quarkus.runtime.util.ForwardingExecutorService
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceExecutorService- Overrides:
isTerminatedin classio.quarkus.runtime.util.ForwardingExecutorService
-
awaitTermination
- Specified by:
awaitTerminationin interfaceExecutorService- Overrides:
awaitTerminationin classio.quarkus.runtime.util.ForwardingExecutorService
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceExecutorService- Overrides:
shutdownin classio.quarkus.runtime.util.ForwardingExecutorService
-
shutdownNow
- Specified by:
shutdownNowin interfaceExecutorService- Overrides:
shutdownNowin classio.quarkus.runtime.util.ForwardingExecutorService
-
toString
-