A strategy where the caller thread iterates over task production, submitting each
task to an Executor for execution.
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final Executor | |
| private final AutoLock | |
| private final ExecutionStrategy. | |
| private ProduceExecuteConsume. | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispatch()
Implements org. Initiates (or resumes) the task production and consumption. |
| public void | produce()
Implements org. Initiates (or resumes) the task production and consumption. |
| _executor | back to summary |
|---|---|
| private final Executor _executor | |
| _lock | back to summary |
|---|---|
| private final AutoLock _lock | |
| _producer | back to summary |
|---|---|
| private final ExecutionStrategy. | |
| _state | back to summary |
|---|---|
| private ProduceExecuteConsume. | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| ProduceExecuteConsume | back to summary |
|---|---|
| public ProduceExecuteConsume(ExecutionStrategy. | |
| dispatch | back to summary |
|---|---|
| public void dispatch() Implements org. Doc from org. Initiates (or resumes) the task production and consumption. This method guarantees that the task is never run by the thread that called this method. TODO review the need for this (only used by HTTP2 push)
| |
| produce | back to summary |
|---|---|
| public void produce() Implements org. Doc from org. Initiates (or resumes) the task production and consumption. The produced task may be run by the same thread that called this method.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ProduceExecuteConsume. | |
| public static final ProduceExecuteConsume. | |
| public static final ProduceExecuteConsume. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ProduceExecuteConsume. | |
| public static ProduceExecuteConsume. |
| EXECUTE | back to summary |
|---|---|
| public static final ProduceExecuteConsume. | |
| IDLE | back to summary |
|---|---|
| public static final ProduceExecuteConsume. | |
| PRODUCE | back to summary |
|---|---|
| public static final ProduceExecuteConsume. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static ProduceExecuteConsume. | |
| values | back to summary |
|---|---|
| public static ProduceExecuteConsume. | |