Class BatchPolicy.Builder
java.lang.Object
org.nuxeo.lib.stream.pattern.consumer.BatchPolicy.Builder
- Enclosing class:
 BatchPolicy
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuild()capacity(int capacity) Set the capacity of the batch.timeThreshold(Duration threshold) Set the time threshold to fill a batch. 
- 
Field Details
- 
capacity
protected int capacity - 
threshold
 
 - 
 - 
Constructor Details
- 
Builder
protected Builder() 
 - 
 - 
Method Details
- 
capacity
Set the capacity of the batch. - 
timeThreshold
Set the time threshold to fill a batch. - 
build
 
 -