Class OrderFulfillmentStartupIndexer
java.lang.Object
com.broadleafcommerce.search.index.fulfillment.master.OrderFulfillmentStartupIndexer
- All Implemented Interfaces:
org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class OrderFulfillmentStartupIndexer
extends Object
implements org.springframework.context.SmartLifecycle
Support optional order fulfillment reindex at application startup. This is driven via the
broadleaf.orderfulfillment.reindex.startup property.- Author:
- Dima Myroniuk (dmyroniuk)
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionOrderFulfillmentStartupIndexer(com.broadleafcommerce.search.index.core.service.ReindexDelegationService reindexDelegationService, com.broadleafcommerce.search.index.core.ProcessStateService processStateService) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecycle
getPhase, isAutoStartup, stop
-
Constructor Details
-
OrderFulfillmentStartupIndexer
public OrderFulfillmentStartupIndexer(com.broadleafcommerce.search.index.core.service.ReindexDelegationService reindexDelegationService, com.broadleafcommerce.search.index.core.ProcessStateService processStateService)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-