Class WorkerStartedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.broadleafcommerce.search.index.core.event.SearchIndexProcessEvent
com.broadleafcommerce.search.index.core.event.WorkerStartedEvent
- All Implemented Interfaces:
IndexableTypeAware
,Serializable
Provides an event to notify that a worker has started its work.
- Author:
- Kelly Tisdell (ktisdell)
- See Also:
-
Field Summary
Fields inherited from class com.broadleafcommerce.search.index.core.event.SearchIndexProcessEvent
DEFAULT_SOURCE
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionWorkerStartedEvent
(com.broadleafcommerce.search.api.type.IndexableType type, String correlationId, int threads) WorkerStartedEvent
(Object source, com.broadleafcommerce.search.api.type.IndexableType type, String correlationId, int threads) -
Method Summary
Modifier and TypeMethodDescriptionThe ID which uniquely identifies this reindex process.int
The number of threads executing for this worker.Methods inherited from class com.broadleafcommerce.search.index.core.event.SearchIndexProcessEvent
getIndexableType
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
WorkerStartedEvent
public WorkerStartedEvent(com.broadleafcommerce.search.api.type.IndexableType type, @Nullable String correlationId, int threads) -
WorkerStartedEvent
-
-
Method Details
-
getCorrelationId
The ID which uniquely identifies this reindex process.- Returns:
- the ID which uniquely identifies this reindex process
-
getThreads
public int getThreads()The number of threads executing for this worker.- Returns:
- number of threads executing for this worker
-