Class StartDataFeedProcessExecutionRequest
java.lang.Object
com.broadleafcommerce.datafeed.messaging.payload.StartDataFeedProcessExecutionRequest
- All Implemented Interfaces:
Serializable
When a
DataFeedProcessExecution
is marked
DefaultDataFeedExecutionStatuses.REQUESTED
, this message should simultaneously be emitted
for it.
This represents a request to actually start running the execution and processing data for it.
The expectation is for the data feed microservice itself to publish and consume these messages.
By separating the 'request' and 'run' phases of an execution via this messaging process, we
ensure the (lengthy) run step can happen in the background rather than tying up a request thread.
Furthermore, it opens up the possibility of better load-balancing across instances of data feed
services depending on message consumer configuration - the node emitting the
StartDataFeedProcessExecutionRequest
does not have to be the one to actually consume and
process it.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
TheDataFeedProcessExecution.getId()
which needs to be run.The ID of the tenant who owns theDataFeedProcessExecution
.int
hashCode()
void
setDataFeedProcessExecutionId
(String dataFeedProcessExecutionId) TheDataFeedProcessExecution.getId()
which needs to be run.void
setTenantId
(String tenantId) The ID of the tenant who owns theDataFeedProcessExecution
.toString()
-
Constructor Details
-
StartDataFeedProcessExecutionRequest
public StartDataFeedProcessExecutionRequest()
-
-
Method Details
-
getDataFeedProcessExecutionId
TheDataFeedProcessExecution.getId()
which needs to be run. -
getTenantId
The ID of the tenant who owns theDataFeedProcessExecution
. -
setDataFeedProcessExecutionId
TheDataFeedProcessExecution.getId()
which needs to be run. -
setTenantId
The ID of the tenant who owns theDataFeedProcessExecution
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-