Enabling queue service interval events
To configure a queue for queue service interval events you set the appropriate queue manager and queue attributes.
About this task
The high and OK events are mutually exclusive; that is, when one is enabled, the other is automatically disabled:
- When a high event is generated on a queue, the queue manager automatically disables high events and enables OK events for that queue.
- When an OK event is generated on a queue, the queue manager automatically disables OK events and enables high events for that queue.
Queue service interval event | Queue attributes |
---|---|
Queue Service Interval High
Queue Service Interval OK No queue service interval events |
QSVCIEV (HIGH)
QSVCIEV (OK) QSVCIEV (NONE) |
Service interval
|
QSVCINT (
tt ) where tt is the serviceinterval time in milliseconds. |
Procedure
-
Set the queue manager attribute PERFMEV to ENABLED.
Performance events are enabled on the queue manager.
- Set the control attribute, QSVCIEV, for a Queue Service Interval High or OK event on the queue, as required.
- Set the QSVCINT attribute for the queue to specify the appropriate service interval time.
Example
ALTER QMGR PERFMEV(ENABLED)
ALTER QLOCAL('MYQUEUE') QSVCINT(10000) QSVCIEV(HIGH)