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 protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchPolicybuild()BatchPolicy.Buildercapacity(int capacity)Set the capacity of the batch.BatchPolicy.BuildertimeThreshold(Duration threshold)Set the time threshold to fill a batch.
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
-
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()
-
-