Class IncrementalDataFeedEntityUpdateRecord
java.lang.Object
com.broadleafcommerce.datafeed.domain.IncrementalDataFeedEntityUpdateRecord
- All Implemented Interfaces:
- com.broadleafcommerce.data.tracking.core.ContextStateAware,- Serializable
public class IncrementalDataFeedEntityUpdateRecord
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
For each 
IncrementalDataFeedEntityUpdateEvent that is received, an
 IncrementalDataFeedEntityUpdateRecord record will be created for each
 DataFeedProcess of type DefaultDataFeedProcessTypes.PARTIAL_UPDATE who may be
 interested in processing it. This means each DataFeedProcess will effectively
 have its own 'queue' of update events that it can process whenever it is executed.
 
 Generally speaking, the expectation is for the DataFeedProcess to be executed at some
 regular interval and handle any queued IncrementalDataFeedEntityUpdateRecords in bulk.
 
Admin users should almost never be responsible for making direct CRUD requests on this entity. The system should be in charge of managing these records.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanShould contain a value fromDefaultIncrementalEventProductReferenceTypesdescribing the type of product reference ingetAffectedProductReferenceValue().The reference key value of the product affected by this entity update event record.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.This will benulluntil aDataFeedProcessExecutionis started for the parentgetDataFeedProcessId()and this event record is marked as part of that execution.TheDataFeedProcess.getId()of theDataFeedProcesswhich this event record was created for.The timestamp when the entity update notification message was actually received by data feed services.getId()The context ID of this event record.Notification events from other services should include timestamps describing when the actual update occurred, and we record it here.inthashCode()voidsetAffectedProductReferenceType(String affectedProductReferenceType) Should contain a value fromDefaultIncrementalEventProductReferenceTypesdescribing the type of product reference ingetAffectedProductReferenceValue().voidsetAffectedProductReferenceValue(String affectedProductReferenceValue) The reference key value of the product affected by this entity update event record.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetDataFeedProcessExecutionId(String dataFeedProcessExecutionId) This will benulluntil aDataFeedProcessExecutionis started for the parentgetDataFeedProcessId()and this event record is marked as part of that execution.voidsetDataFeedProcessId(String dataFeedProcessId) TheDataFeedProcess.getId()of theDataFeedProcesswhich this event record was created for.voidsetEventReceivedTime(Instant eventReceivedTime) The timestamp when the entity update notification message was actually received by data feed services.voidThe context ID of this event record.voidsetOriginalEventTime(Instant originalEventTime) Notification events from other services should include timestamps describing when the actual update occurred, and we record it here.toString()
- 
Constructor Details- 
IncrementalDataFeedEntityUpdateRecordpublic IncrementalDataFeedEntityUpdateRecord()
 
- 
- 
Method Details- 
getIdThe context ID of this event record.- Returns:
- the id of this event record
 
- 
getDataFeedProcessIdTheDataFeedProcess.getId()of theDataFeedProcesswhich this event record was created for.- Returns:
- the ID of the data feed process this event record is for
 
- 
getDataFeedProcessExecutionIdThis will benulluntil aDataFeedProcessExecutionis started for the parentgetDataFeedProcessId()and this event record is marked as part of that execution.- Returns:
- the DataFeedProcessExecution.getId()of the execution that is processing this event record, elsenullif this event record is still pending processing
 
- 
getAffectedProductReferenceTypeShould contain a value fromDefaultIncrementalEventProductReferenceTypesdescribing the type of product reference ingetAffectedProductReferenceValue().Different services may use different mechanisms to reference products, which is why this is necessary. - Returns:
- the type of product reference in getAffectedProductReferenceValue()
- See Also:
 
- 
getAffectedProductReferenceValueThe reference key value of the product affected by this entity update event record.- Returns:
- the reference key value of the product affected by this entity update event record
- See Also:
 
- 
getOriginalEventTimeNotification events from other services should include timestamps describing when the actual update occurred, and we record it here.- Returns:
- the timestamp describing when the actual update event occurred
- See Also:
 
- 
getEventReceivedTimeThe timestamp when the entity update notification message was actually received by data feed services.- Returns:
- the timestamp when the entity update notification message was actually received by data feed services
 
- 
getContextStatepublic com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
- getContextStatein interface- com.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of Trackinginformation to expose the context state for this object
 
- 
setIdThe context ID of this event record.- Parameters:
- id- the id of this event record
 
- 
setDataFeedProcessIdTheDataFeedProcess.getId()of theDataFeedProcesswhich this event record was created for.- Parameters:
- dataFeedProcessId- the ID of the data feed process this event record is for
 
- 
setDataFeedProcessExecutionIdThis will benulluntil aDataFeedProcessExecutionis started for the parentgetDataFeedProcessId()and this event record is marked as part of that execution.- Parameters:
- dataFeedProcessExecutionId- the- DataFeedProcessExecution.getId()of the execution that is processing this event record, else- nullif this event record is still pending processing
 
- 
setAffectedProductReferenceTypeShould contain a value fromDefaultIncrementalEventProductReferenceTypesdescribing the type of product reference ingetAffectedProductReferenceValue().Different services may use different mechanisms to reference products, which is why this is necessary. - Parameters:
- affectedProductReferenceType- the type of product reference in- getAffectedProductReferenceValue()
- See Also:
 
- 
setAffectedProductReferenceValueThe reference key value of the product affected by this entity update event record.- Parameters:
- affectedProductReferenceValue- the reference key value of the product affected by this entity update event record
- See Also:
 
- 
setOriginalEventTimeNotification events from other services should include timestamps describing when the actual update occurred, and we record it here.- Parameters:
- originalEventTime- the timestamp describing when the actual update event occurred
- See Also:
 
- 
setEventReceivedTimeThe timestamp when the entity update notification message was actually received by data feed services.- Parameters:
- eventReceivedTime- the timestamp when the entity update notification message was actually received by data feed services
 
- 
setContextStatepublic void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Specified by:
- setContextStatein interface- com.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
- contextState- a subset of- Trackinginformation to expose the context state for this object
 
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
toString
 
-