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
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()
-
Constructor Details
-
DelegatingExecutorService
DelegatingExecutorService(ExecutorService delegate)
-
-
Method Details
-
delegate
- Specified by:
delegatein classForwardingExecutorService
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceExecutorService- Overrides:
isShutdownin classForwardingExecutorService
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceExecutorService- Overrides:
isTerminatedin classForwardingExecutorService
-
awaitTermination
- Specified by:
awaitTerminationin interfaceExecutorService- Overrides:
awaitTerminationin classForwardingExecutorService
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceExecutorService- Overrides:
shutdownin classForwardingExecutorService
-
shutdownNow
- Specified by:
shutdownNowin interfaceExecutorService- Overrides:
shutdownNowin classForwardingExecutorService
-
toString
-