MsgRetryInterval (MQLONG)

This field specifies the minimum interval in milliseconds after which the put operation is retried.

The first time the exit is invoked for a particular message, this field contains the value of the MsgRetryInterval channel attribute. The exit can leave the value unchanged, or modify it to specify a different time interval in milliseconds. If the exit returns MQXCC_OK in ExitResponse, the MCA waits for at least this time interval before retrying the MQOPEN or MQPUT operation. The time interval specified must be zero or greater.

The second and subsequent times the exit is invoked for that message, this field contains the value returned by the previous invocation of the exit.

If the value returned in the MsgRetryInterval field is less than zero or greater than 999 999 999, and ExitResponse is MQXCC_OK, the MCA ignores the MsgRetryInterval field in MQCXP and waits instead for the interval specified by the MsgRetryInterval channel attribute.

This is an input/output field to the exit. The value in this field is not meaningful if ExitReason is MQXR_INIT. The field is not present if Version is less than MQCXP_VERSION_2.

Parent topic: Fields