Class AbortedOutboundSyncEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- de.hybris.platform.servicelayer.event.events.AbstractEvent
-
- de.hybris.platform.outboundsync.events.OutboundSyncEvent
-
- de.hybris.platform.outboundsync.events.AbortedOutboundSyncEvent
-
- All Implemented Interfaces:
java.io.Serializable
@Immutable public final class AbortedOutboundSyncEvent extends OutboundSyncEvent
Event is triggered for every item being processed after the job is aborted. It indicates that an item was picked up off the queue but was ignored and was not attempted to synchronize. Before the job is abortedCompletedOutboundSyncEventis fired for every item processed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbortedOutboundSyncEvent(PK cronJobPk, int changesCnt)Instantiates this event
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetChangesProcessed()Retrieves number of changes related to the item ignored.inthashCode()java.lang.StringtoString()-
Methods inherited from class de.hybris.platform.outboundsync.events.OutboundSyncEvent
getCronJobPk
-
Methods inherited from class de.hybris.platform.servicelayer.event.events.AbstractEvent
getScope, getSource, isFromCluster, setFromCluster, setScope
-
-
-
-
Constructor Detail
-
AbortedOutboundSyncEvent
public AbortedOutboundSyncEvent(PK cronJobPk, int changesCnt)
Instantiates this event- Parameters:
cronJobPk- primary key of the job that was aborted.changesCnt- number of changes processed by the job for the context item ignored during synchronization.
-
-
Method Detail
-
getChangesProcessed
public int getChangesProcessed()
Retrieves number of changes related to the item ignored.- Returns:
- number of changes related to the item ignored. At a minimum this value is expected to be 1, but the number can be greater when multiple items related to the item being synchronized changed. For example, if Customer is being synchronized because two of its Addresses changed, this value will be 2.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classOutboundSyncEvent
-
hashCode
public int hashCode()
- Overrides:
hashCodein classOutboundSyncEvent
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractEvent
-
-