Class IndexerProperties

java.lang.Object
com.broadleafcommerce.search.index.autoconfigure.IndexerProperties

@ConfigurationProperties(prefix="broadleaf.indexer") public class IndexerProperties extends Object
Properties used for indexer configuration.
  • Constructor Details

    • IndexerProperties

      public IndexerProperties()
  • Method Details

    • getQueue

    • getSearch

    • getTenant

    • getWorkerThreads

      public int getWorkerThreads()
      The number of worker threads which should be started on a reindex process.
      Returns:
      number of worker threads on a reindex process
    • getPauseBetweenThreadsStart

      public long getPauseBetweenThreadsStart()
      Time in millis between 2 threads are started. Depending on how many workerThreads delay between the first and the last thread can be pauseBetweenThreadsStart * workerThreads;
      Returns:
      pause in millis between start of two threads
    • getCompletionPauseTime

      public long getCompletionPauseTime()
      This is the time that the main control thread will pause on indexing process completion to allow other threads to finish what they are doing or catch up.
      Returns:
      time to wait on indexing completion for other threads finishing
    • setQueue

      public void setQueue(IndexerProperties.QueueProperties queue)
    • setSearch

      public void setSearch(IndexerProperties.SearchProperties search)
    • setTenant

      public void setTenant(IndexerProperties.TenantProperties tenant)
    • setWorkerThreads

      public void setWorkerThreads(int workerThreads)
      The number of worker threads which should be started on a reindex process.
      Parameters:
      workerThreads - number of worker threads on a reindex process
    • setPauseBetweenThreadsStart

      public void setPauseBetweenThreadsStart(long pauseBetweenThreadsStart)
      Time in millis between 2 threads are started. Depending on how many workerThreads delay between the first and the last thread can be pauseBetweenThreadsStart * workerThreads;
      Parameters:
      pauseBetweenThreadsStart - number of worker threads on a reindex process
    • setCompletionPauseTime

      public void setCompletionPauseTime(long completionPauseTime)
      This is the time that the main control thread will pause on indexing process completion to allow other threads to finish what they are doing or catch up.
      Parameters:
      completionPauseTime - time to wait on indexing completion for other threads finishing
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object