public class SerialExecutorService extends ConstrainedExecutorService
| Constructor and Description |
|---|
SerialExecutorService(java.util.concurrent.Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable runnable)
Synchronized override of
ConstrainedExecutorService.execute(Runnable) to
ensure that view of memory is consistent between different threads executing tasks serially. |
awaitTermination, isIdle, isShutdown, isTerminated, newConstrainedExecutor, shutdown, shutdownNowpublic SerialExecutorService(java.util.concurrent.Executor executor)
public void execute(java.lang.Runnable runnable)
ConstrainedExecutorService.execute(Runnable) to
ensure that view of memory is consistent between different threads executing tasks serially.execute in interface java.util.concurrent.Executorexecute in class ConstrainedExecutorServicerunnable - The task to be executed.