Queue service interval events: example 2
A sequence of MQPUT calls and MQGET calls, where the queue depth is not always one or zero.
This example also shows instances of the timer being reset without events being generated, for example, at time P2.
Commentary
In this example, OK events are enabled initially and queue statistics were reset at time T0.
- At P1, the first put starts the service timer.
- At P2, the second put does not generate an event because a put cannot cause an OK event.
- At G1, the service interval has now been exceeded and therefore an OK event is not generated. However, the MQGET call causes the service timer to be reset.
- At G2, the second get occurs within the service interval and this time an OK event is generated. The queue manager resets the event control attribute so that:
- The high event is automatically enabled.
- The OK event is disabled.
Because the queue is now empty, the service timer is switched to an OFF state.
Event statistics summary
Table 1 summarizes the event statistics for this example.Parent topic: Queue service interval events examples
Attribute Event 2 Time of event T(G2) Type of event OK TimeSinceReset T(G2) - T(0) HighQDepth 2 MsgEnqCount 2 MsgDeqCount 2