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 ProduceConsume. | |
| 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. |
| public void |
| _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 ProduceConsume. | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| ProduceConsume | back to summary |
|---|---|
| public ProduceConsume(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.
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ProduceConsume. | |
| public static final ProduceConsume. | |
| public static final ProduceConsume. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ProduceConsume. | |
| public static ProduceConsume. |
| EXECUTE | back to summary |
|---|---|
| public static final ProduceConsume. | |
| IDLE | back to summary |
|---|---|
| public static final ProduceConsume. | |
| PRODUCE | back to summary |
|---|---|
| public static final ProduceConsume. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static ProduceConsume. | |
| values | back to summary |
|---|---|
| public static ProduceConsume. | |