public class SingleThreadedExecutor extends Object
shutDownAndAwaitTermination()
when finished.
This implementation is thread-safe.
Constructor and Description |
---|
SingleThreadedExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
execute(Runnable runnable)
Executes
runnable on the managed thread. |
void |
shutDownAndAwaitTermination()
Shuts down the
executorService and waits for it to terminate. |
public void shutDownAndAwaitTermination()
executorService
and waits for it to terminate.Copyright © 2018. All rights reserved.