3.1.7.1.7 Purge Queue
This event MUST be generated with the following argument:
iQueue: A reference to a Queue (section 3.1.1.2) ADM element instance that is to be purged.
Return Value:
None.
The queue manager MUST perform the following actions to process this event:
For each iMessagePosition reference to the MessagePosition (section 3.1.1.11) ADM element in iQueue.MessagePositionList:
If iMessagePosition.State is not Available:
Set iMessagePosition.State to PurgePending.
Else:
Generate the Message Position Deleted (section 3.1.7.2.1) event with the following arguments:
iQueue := iQueue
iPosition := iMessagePosition
iReason := NackQueuePurged