Package conseq4j
Interface Terminable
-
- All Known Subinterfaces:
SequentialExecutor,SequentialExecutorServiceFactory
- All Known Implementing Classes:
ConseqExecutor,ConseqServiceFactory
public interface Terminable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisTerminated()Nonblockingvoidshutdown()Nonblocking, initiates an orderly shutdown of all managed thread resources.
-
-
-
Method Detail
-
shutdown
void shutdown()
Nonblocking, initiates an orderly shutdown of all managed thread resources. Previously submitted tasks are executed, but no new tasks will be accepted. Invocation has no additional effect if already shut down.
-
isTerminated
boolean isTerminated()
Nonblocking- Returns:
- true if all tasks of all managed executors have completed following shut down. Note that isTerminated is never true unless shutdown was called first.
-
-