Class AbortedOutboundSyncEvent

All Implemented Interfaces:
Serializable

@Immutable public final class AbortedOutboundSyncEvent extends ItemGroupOutboundSyncEvent
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 aborted CompletedOutboundSyncEvent is fired for every item processed.
See Also:
  • Constructor Details

    • AbortedOutboundSyncEvent

      public AbortedOutboundSyncEvent(PK cronJobPk, OutboundItemDTOGroup group)
      Instantiates this event
      Parameters:
      cronJobPk - primary key of the job that was aborted.
      group - changed items being reported by this event
    • AbortedOutboundSyncEvent

      public AbortedOutboundSyncEvent(PK cronJobPk, Collection<OutboundItemDTOGroup> groups)
      Instantiates this event
      Parameters:
      cronJobPk - primary key of the job that was aborted.
      groups - List of changed items being reported by this event
    • 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 Details

    • 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(Object o)
      Overrides:
      equals in class OutboundSyncEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class OutboundSyncEvent
    • toString

      public String toString()
      Overrides:
      toString in class AbstractEvent