Class Runner
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.cojen.tupl.util.Runner
- All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService
Implements an unbounded pool of daemon threads which automatically exit when idle. Intended
as a faster alternative to launching new threads, but not as fast as a work stealing pool.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long timeout, TimeUnit unit) static Runnercurrent()Return an executor for the current thread's group.voidbooleanbooleanvoidshutdown()Does nothing.Does nothing.static voidstatic voidMethods inherited from class AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ExecutorService
close
-
Method Details
-
start
-
start
-
current
Return an executor for the current thread's group. -
execute
-
shutdown
public void shutdown()Does nothing. -
shutdownNow
-
isShutdown
public boolean isShutdown()- Returns:
- false
-
isTerminated
public boolean isTerminated()- Returns:
- false
-
awaitTermination
- Returns:
- false
- Throws:
InterruptedException
-