Class BulkScrollerComputation.Builder

    • Field Detail

      • 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 name
        nbOutputStream - 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