Class CompletedOutboundSyncEvent
- 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.CompletedOutboundSyncEvent
-
- All Implemented Interfaces:
java.io.Serializable
@Immutable public final class CompletedOutboundSyncEvent extends OutboundSyncEvent
Event triggered for every item, for which synchronization has been attempted during a cron job run.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompletedOutboundSyncEvent(PK cronJobPk, boolean success, int changesCnt)Instantiates this event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetChangesCompleted()Retrieves number of changes processed for the item.inthashCode()booleanisSuccess()Determines whether the item was synchronized successfully or not.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
-
CompletedOutboundSyncEvent
public CompletedOutboundSyncEvent(PK cronJobPk, boolean success, int changesCnt)
Instantiates this event.- Parameters:
cronJobPk- primary key of the job that processed the item synchronizationsuccess-true, if synchronization was successful;falseotherwise.changesCnt- number of changes processed during the item synchronization.
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
Determines whether the item was synchronized successfully or not.- Returns:
true, if synchronization was successful;falseotherwise.
-
getChangesCompleted
public int getChangesCompleted()
Retrieves number of changes processed for the item. It's possible that single item synchronizes multiple changes, which is especially true in cases when items related to the root integration object item change. For example, in case of multiple order entries changes, only one order entry item will be synchronized for all those changes.- Returns:
- number of changes processed for the item.
-
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
-
-