Class AbstractSizedBatchCollector<B>

java.lang.Object
uk.ac.ebi.utils.threading.batchproc.AbstractSizedBatchCollector<B>
Type Parameters:
B -
All Implemented Interfaces:
BatchCollector<B>, SizedBatchCollector<B>
Direct Known Subclasses:
CollectionBatchCollector

@Deprecated public abstract class AbstractSizedBatchCollector<B> extends Object implements SizedBatchCollector<B>
Deprecated.
the functionality available in this package is provided by project Reactor and we recommend to switch to that. TODO: helpers and examples about batching via Reactor.
A default scaffolding SizedBatchCollector, which has a getter for maxBatchSize() and a default value for it.
Author:
brandizi
Date:
25 Nov 2019
  • Constructor Details

    • AbstractSizedBatchCollector

      protected AbstractSizedBatchCollector()
      Deprecated.
      Takes the default value of 1000.
    • AbstractSizedBatchCollector

      protected AbstractSizedBatchCollector(long maxBatchSize)
      Deprecated.
  • Method Details

    • maxBatchSize

      public long maxBatchSize()
      Deprecated.
      Specified by:
      maxBatchSize in interface SizedBatchCollector<B>
    • setMaxBatchSize

      public void setMaxBatchSize(long maxBatchSize)
      Deprecated.