| Package | Description |
|---|---|
| net.lecousin.framework.concurrent.util.production.simple |
Production model: a producer produces objects that are consumed by a consumer.
This allows asynchronous production and consumption. An example is a server task producing an output, and a consumer sending it over the network. |
| Modifier and Type | Class and Description |
|---|---|
class |
ProductTransformation<Input,Output>
Implement a consumer for a specific type, and transform it before to pass it to another consumer.
|
| Constructor and Description |
|---|
Production(Producer<T> producer,
int maxPending,
Consumer<T> consumer)
Constructor.
|
ProductTransformation(Consumer<Output> consumer)
Constructor.
|
Copyright © 2019. All rights reserved.