Class 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 Detail

      • CompletedOutboundSyncEvent

        public CompletedOutboundSyncEvent​(PK cronJobPk,
                                          boolean success,
                                          int changesCnt)
        Instantiates this event.
        Parameters:
        cronJobPk - primary key of the job that processed the item synchronization
        success - true, if synchronization was successful; false otherwise.
        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; false otherwise.
      • 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.