Class BatchPolicy.Builder
- java.lang.Object
-
- org.nuxeo.lib.stream.pattern.consumer.BatchPolicy.Builder
-
- Enclosing class:
- BatchPolicy
public static class BatchPolicy.Builder extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchPolicy
build()
BatchPolicy.Builder
capacity(int capacity)
Set the capacity of the batch.BatchPolicy.Builder
timeThreshold(Duration threshold)
Set the time threshold to fill a batch.
-
-
-
Field Detail
-
capacity
protected int capacity
-
threshold
protected Duration threshold
-
-
Method Detail
-
capacity
public BatchPolicy.Builder capacity(int capacity)
Set the capacity of the batch.
-
timeThreshold
public BatchPolicy.Builder timeThreshold(Duration threshold)
Set the time threshold to fill a batch.
-
build
public BatchPolicy build()
-
-