Class Batcher.Builder

java.lang.Object
edu.byu.hbll.misc.BatchExecutorService.Builder
edu.byu.hbll.solr.batch.Batcher.Builder
Enclosing class:
Batcher

public static final class Batcher.Builder extends edu.byu.hbll.misc.BatchExecutorService.Builder
Configures and builds a new solr Batcher.
Author:
bwelker
  • Constructor Details

    • Builder

      public Builder(org.apache.solr.client.solrj.SolrClient client)
      Constructs a new Builder for a solr Batcher.
      Parameters:
      client - The solr client that will be used to communicate with solr.
  • Method Details

    • batchCapacity

      public Batcher.Builder batchCapacity(int batchCapacity)
      Overrides:
      batchCapacity in class edu.byu.hbll.misc.BatchExecutorService.Builder
    • batchDelay

      public Batcher.Builder batchDelay(Duration batchDelay)
      Overrides:
      batchDelay in class edu.byu.hbll.misc.BatchExecutorService.Builder
    • queueCapacity

      public Batcher.Builder queueCapacity(int queueCapacity)
      Overrides:
      queueCapacity in class edu.byu.hbll.misc.BatchExecutorService.Builder
    • suspend

      public Batcher.Builder suspend(Duration suspend)
      Overrides:
      suspend in class edu.byu.hbll.misc.BatchExecutorService.Builder
    • threadCount

      public Batcher.Builder threadCount(int threadCount)
      Overrides:
      threadCount in class edu.byu.hbll.misc.BatchExecutorService.Builder
    • threadFactory

      public Batcher.Builder threadFactory(ThreadFactory threadFactory)
      Overrides:
      threadFactory in class edu.byu.hbll.misc.BatchExecutorService.Builder
    • build

      public Batcher build()
      Overrides:
      build in class edu.byu.hbll.misc.BatchExecutorService.Builder