Package ai.preferred.venom.utils
Class InlineExecutorService
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- ai.preferred.venom.utils.InlineExecutorService
-
- All Implemented Interfaces:
Executor
,ExecutorService
public class InlineExecutorService extends AbstractExecutorService implements ExecutorService
- Author:
- Ween Jiann Lee
-
-
Constructor Summary
Constructors Constructor Description InlineExecutorService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long timeout, TimeUnit unit)
void
execute(Runnable command)
boolean
isShutdown()
boolean
isTerminated()
void
shutdown()
List<Runnable>
shutdownNow()
-
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
-
-
-
Method Detail
-
shutdown
public final void shutdown()
- Specified by:
shutdown
in interfaceExecutorService
-
shutdownNow
@Nonnull public final List<Runnable> shutdownNow()
- Specified by:
shutdownNow
in interfaceExecutorService
-
isShutdown
public final boolean isShutdown()
- Specified by:
isShutdown
in interfaceExecutorService
-
isTerminated
public final boolean isTerminated()
- Specified by:
isTerminated
in interfaceExecutorService
-
awaitTermination
public final boolean awaitTermination(long timeout, @Nonnull TimeUnit unit) throws InterruptedException
- Specified by:
awaitTermination
in interfaceExecutorService
- Throws:
InterruptedException
-
-