java.lang.Object
java.util.concurrent.AbstractExecutorService
org.cojen.tupl.util.Runner
- All Implemented Interfaces:
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 java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
Method Details
-
start
-
start
- Parameters:
namePrefix- name prefix to assign to the thread
-
current
Return an executor for the current thread's group. -
execute
-
shutdown
public void shutdown()Does nothing. -
shutdownNow
Does nothing.- Returns:
- empty list
-
isShutdown
public boolean isShutdown()- Returns:
- false
-
isTerminated
public boolean isTerminated()- Returns:
- false
-
awaitTermination
- Returns:
- false
- Throws:
InterruptedException
-