Package io.fluxcapacitor.common
Class DirectExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
io.fluxcapacitor.common.DirectExecutorService
- All Implemented Interfaces:
AutoCloseable,Executor,ExecutorService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long timeout, TimeUnit unit) voidbooleanbooleanstatic ExecutorServicevoidshutdown()Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
close
-
Constructor Details
-
DirectExecutorService
public DirectExecutorService()
-
-
Method Details
-
newInstance
-
execute
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
shutdownNow
-
isTerminated
public boolean isTerminated() -
awaitTermination
- Throws:
InterruptedException
-