Class BulkScrollerComputation.Builder
- java.lang.Object
-
- org.nuxeo.ecm.core.bulk.computation.BulkScrollerComputation.Builder
-
- Enclosing class:
- BulkScrollerComputation
public static class BulkScrollerComputation.Builder extends Object
- Since:
- 11.4
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringnameprotected intnbOutputStreamsprotected booleanproduceImmediateprotected intproduceImmediateThresholdprotected longqueryLimitprotected intscrollBatchSizeprotected intscrollKeepAliveSecondsprotected DurationtransactionTimeout
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BulkScrollerComputationbuild()BulkScrollerComputation.BuildersetProduceImmediate(boolean produceImmediate)BulkScrollerComputation.BuildersetProduceImmediateThreshold(int produceImmediateThreshold)BulkScrollerComputation.BuildersetScrollBatchSize(int scrollBatchSize)BulkScrollerComputation.BuildersetScrollKeepAliveSeconds(int scrollKeepAliveSeconds)BulkScrollerComputation.BuildersetTransactionTimeout(Duration transactionTimeout)
-
-
-
Field Detail
-
name
protected String name
-
nbOutputStreams
protected int nbOutputStreams
-
scrollBatchSize
protected int scrollBatchSize
-
scrollKeepAliveSeconds
protected int scrollKeepAliveSeconds
-
produceImmediate
protected boolean produceImmediate
-
produceImmediateThreshold
protected int produceImmediateThreshold
-
transactionTimeout
protected Duration transactionTimeout
-
queryLimit
protected long queryLimit
-
-
Constructor Detail
-
Builder
public Builder(String name, int nbOutputStream)
- Parameters:
name- the computation namenbOutputStream- the number of registered bulk action streams
-
-
Method Detail
-
setScrollBatchSize
public BulkScrollerComputation.Builder setScrollBatchSize(int scrollBatchSize)
- Parameters:
scrollBatchSize- the batch size to scroll
-
setScrollKeepAliveSeconds
public BulkScrollerComputation.Builder setScrollKeepAliveSeconds(int scrollKeepAliveSeconds)
- Parameters:
scrollKeepAliveSeconds- the scroll lifetime between fetch
-
setProduceImmediate
public BulkScrollerComputation.Builder setProduceImmediate(boolean produceImmediate)
- Parameters:
produceImmediate- whether or not the record should be produced immediately while scrolling
-
setProduceImmediateThreshold
public BulkScrollerComputation.Builder setProduceImmediateThreshold(int produceImmediateThreshold)
- Parameters:
produceImmediateThreshold- produce record immediately after the threshold to prevent OOM
-
setTransactionTimeout
public BulkScrollerComputation.Builder setTransactionTimeout(Duration transactionTimeout)
- Parameters:
transactionTimeout- set an explicit transaction timeout for the scroll
-
build
public BulkScrollerComputation build()
-
-