ShutdownFallbackExecutor wrapper around a single threaded executor
which will execute pending tasks when the worker has been shut down.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void |
| EXECUTOR | back to summary |
|---|---|
| private static volatile Executor EXECUTOR | |
| ShutdownFallbackExecutor | back to summary |
|---|---|
| private ShutdownFallbackExecutor() | |
| execute | back to summary |
|---|---|
| pack-priv static void execute(Runnable runnable) | |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicLong | |
| private final ThreadFactory |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Thread | newThread(Runnable
a runnable to be executed by new thread instance r)Implements java. Constructs a new unstarted |
| count | back to summary |
|---|---|
| private final AtomicLong count | |
| threadFactory | back to summary |
|---|---|
| private final ThreadFactory threadFactory | |
| ShutdownFallbackThreadFactory | back to summary |
|---|---|
| pack-priv ShutdownFallbackThreadFactory() | |
| newThread | back to summary |
|---|---|
| public Thread newThread(Runnable r) Implements java. Doc from java. Constructs a new unstarted | |