Class CustomerStartupIndexer

java.lang.Object
com.broadleafcommerce.search.index.customer.master.CustomerStartupIndexer
All Implemented Interfaces:
org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public class CustomerStartupIndexer extends Object implements org.springframework.context.SmartLifecycle
Support optional customer reindex at application startup. This is driven via the broadleaf.customer.reindex.startup property.
Author:
Jeff Fischer
  • Field Summary

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomerStartupIndexer(com.broadleafcommerce.search.index.core.service.ReindexDelegationService reindexDelegationService, com.broadleafcommerce.search.index.core.ProcessStateService processStateService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.SmartLifecycle

    getPhase, isAutoStartup, stop
  • Constructor Details

    • CustomerStartupIndexer

      public CustomerStartupIndexer(com.broadleafcommerce.search.index.core.service.ReindexDelegationService reindexDelegationService, com.broadleafcommerce.search.index.core.ProcessStateService processStateService)
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle