Class DataFeedExecutionRequestScheduledJobListener
java.lang.Object
com.broadleafcommerce.datafeed.messaging.listener.DataFeedExecutionRequestScheduledJobListener
@DataRouteByKey("datafeed")
public class DataFeedExecutionRequestScheduledJobListener
extends Object
A listener that accepts triggered scheduled job events of type
 
DATA_FEED_EXECUTION_REQUEST_JOBTYPE.- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe scheduled job must have this as itsScheduledJobRef.getType()in order to be handled by this listener.static final StringScheduledJobRef.getDetails()must contain an entry with this as theScheduledJobDetailRef.getName(), and must provide an appropriateDataFeedProcess.getId()as its value.
- 
Constructor SummaryConstructorsConstructorDescriptionDataFeedExecutionRequestScheduledJobListener(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, DataFeedProcessExecutionManager dataFeedProcessExecutionManager, com.broadleafcommerce.common.extension.TypeFactory typeFactory) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected DataFeedProcessExecutionManagergetDataFeedProcessId(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef) Gets the data feed process ID whose execution is requested.protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionServiceprotected com.broadleafcommerce.common.extension.TypeFactoryvoidlisten(org.springframework.messaging.Message<com.broadleafcommerce.common.messaging.domain.ScheduledJobRef> message) protected voidprocessMessage(org.springframework.messaging.Message<com.broadleafcommerce.common.messaging.domain.ScheduledJobRef> message) 
- 
Field Details- 
DATA_FEED_EXECUTION_REQUEST_JOBTYPEThe scheduled job must have this as itsScheduledJobRef.getType()in order to be handled by this listener.- See Also:
 
- 
DATA_FEED_PROCESS_ID_SCHEDULED_JOB_DETAIL_NAMEScheduledJobRef.getDetails()must contain an entry with this as theScheduledJobDetailRef.getName(), and must provide an appropriateDataFeedProcess.getId()as its value.- See Also:
 
 
- 
- 
Constructor Details- 
DataFeedExecutionRequestScheduledJobListenerpublic DataFeedExecutionRequestScheduledJobListener(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, DataFeedProcessExecutionManager dataFeedProcessExecutionManager, com.broadleafcommerce.common.extension.TypeFactory typeFactory) 
 
- 
- 
Method Details- 
listen@StreamListener("triggeredJobEventInputDataFeedExecutionRequest") public void listen(org.springframework.messaging.Message<com.broadleafcommerce.common.messaging.domain.ScheduledJobRef> message) 
- 
processMessageprotected void processMessage(org.springframework.messaging.Message<com.broadleafcommerce.common.messaging.domain.ScheduledJobRef> message) 
- 
getDataFeedProcessIdprotected Optional<String> getDataFeedProcessId(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef) Gets the data feed process ID whose execution is requested.- Parameters:
- scheduledJobRef- the scheduled job payload
- Returns:
- the data feed process ID whose execution is requested, if found
 
- 
getIdempotentConsumptionServiceprotected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService getIdempotentConsumptionService()
- 
getDataFeedProcessExecutionManager
- 
getTypeFactoryprotected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
 
-