| Modifier and Type | Field and Description |
|---|---|
| private final PoolMetrics | |
| private Runnable | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| pack-priv void | onCompletion(Runnable
the command execute when the task completes continuation)Set a continuation to be execution on task completion. |
| pack-priv void | |
| public void |
| metrics | back to summary |
|---|---|
| private final PoolMetrics<T> metrics | |
| onComplete | back to summary |
|---|---|
| private Runnable onComplete | |
| queueMetric | back to summary |
|---|---|
| private final Object queueMetric | |
| WorkerTask | back to summary |
|---|---|
| pack-priv WorkerTask(PoolMetrics<T> metrics, Object queueMetric) | |
| execute | back to summary |
|---|---|
| protected abstract void execute() | |
| onCompletion | back to summary |
|---|---|
| pack-priv void onCompletion(Runnable continuation) Set a continuation to be execution on task completion.
| |
| reject | back to summary |
|---|---|
| pack-priv void reject() Reject the task. | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |