| Modifier and Type | Field and Description |
|---|---|
| pack-priv ArrayList | |
| private volatile boolean |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| public void | run()
Overrides java. Implements java. This method is run by the thread when it executes. |
| public void |
| jobs | back to summary |
|---|---|
| pack-priv ArrayList<Runnable> jobs | |
| stopped | back to summary |
|---|---|
| private volatile boolean stopped | |
| Worker | back to summary |
|---|---|
| public Worker(String name) | |
| add | back to summary |
|---|---|
| public void add(Runnable job) | |
| queueFull | back to summary |
|---|---|
| public boolean queueFull() | |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a | |
| stopWorker | back to summary |
|---|---|
| public void stopWorker() | |