tibemsMsgProducer_SetDeliveryDelay

Function

Purpose

Set the delivery delay property of a producer object.

C Declaration

tibems_status tibemsMsgProducer_SetDeliveryDelay(
    tibemsMsgProducer msgProducer,
    tibems_long deliveryDelay );

COBOL Call

CALL "tibemsMsgProducer_SetDeliveryDelay"
     USING BY VALUE msgProducer,
           BY VALUE deliveryDelay,
           RETURNING tibems-status
END-CALL.
Note: msgProducer has usage pointer.

Parameters

Parameter Description
msgProducer Set the property of this producer.
deliveryDelay Set the property to this value.

Remarks

Set the minimum length of time, in milliseconds, that must elapse after a message is sent before the JMS provider may deliver the message to a consumer.

For transacted sends, this time starts when the client sends the message, not when the transaction is committed.

The default value is zero, indicating no delay in delivery.