Class WorkerStartedEventListener
- java.lang.Object
-
- com.broadleafcommerce.search.index.core.event.listener.WorkerStartedEventListener
-
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<WorkerStartedEvent>
@Order(-2147483638) public class WorkerStartedEventListener extends Object implements org.springframework.context.ApplicationListener<WorkerStartedEvent>
Listens forWorkerStartedEvent
, and updates theProcessStateHolder
node count and total thread count for the new worker.- Author:
- Kelly Tisdell (ktisdell)
-
-
Constructor Summary
Constructors Constructor Description WorkerStartedEventListener(ProcessStateService processStateService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onApplicationEvent(WorkerStartedEvent event)
-
-
-
Constructor Detail
-
WorkerStartedEventListener
public WorkerStartedEventListener(ProcessStateService processStateService)
-
-
Method Detail
-
onApplicationEvent
public void onApplicationEvent(WorkerStartedEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<WorkerStartedEvent>
-
-