T - type of object produced and consumedpublic class Production<T> extends Object
| Constructor and Description |
|---|
Production(Producer<T> producer,
int maxPending,
Consumer<T> consumer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endOfProduction()
To be called by the producer if and only if it detects the end of the production, but it has a last product to provide.
|
AsyncSupplier<Void,Exception> |
getSyncOnFinished() |
void |
start()
Start the production.
|
public void start()
public void endOfProduction()
public AsyncSupplier<Void,Exception> getSyncOnFinished()
Copyright © 2019. All rights reserved.