Queue service interval events algorithm
This section gives the formal rules associated with the timer and the queue service interval events.
Service timer
The service timer is reset to zero and restarted:
- Following an MQPUT call to an empty queue.
- Following an MQGET call, if the queue is not empty after the MQGET call.
The resetting of the timer does not depend on whether an event has been generated.
At queue manager startup the service timer is set to startup time if the queue depth is greater than zero.
If the queue is empty following a get operation, the timer is put into an OFF state.
Queue Service Interval High events
The Queue Service Interval event must be enabled (set to
HIGH).
If the service time is greater than the service interval, an event is generated on, or before, the next MQPUT or get operation.
Queue Service Interval OK events
Queue Service Interval OK events are automatically enabled when a Queue Service Interval High event is generated.
If the service time (elapsed time) is less than or equal to the service interval, an event is generated on, or before, the next get operation.