3.1.7.2.1 Message Position Deleted

This event MUST be generated with the following arguments:

  • iQueue: A reference to the Queue (section 3.1.1.2) ADM element instance from which the MessagePosition (section 3.1.1.11) ADM element instance is to be deleted.

  • iPosition: A reference to the MessagePosition ADM element instance that is to be deleted.

  • iReason: One of the enumerated values for the Class ADM attribute of the Message (section 3.1.1.12) ADM element. This argument is used by other protocols that consume this event.

Return Value:

  • None.

The queue manager MUST perform the following actions to process this event:

  • Decrement iQueue.TotalBytes by the value of the storage space, in bytes, consumed by the headers and body of the Message (section 3.1.1.12) ADM element instance referenced by iPosition.MessageReference.

  • Set iPosition.State to Deleted.

  • Remove iPosition from iQueue.MessagePositionList as per the rules specified for the MessagePositionList ADM attribute of the Queue ADM element.