Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 4 Consumer : tibemsMsgConsumer : tibemsMsgConsumer_ReceiveTimeout

tibemsMsgConsumer_ReceiveTimeout
Function
Purpose
Receive a message (synchronous, blocks up to a time limit).
C Declaration
tibems_status tibemsMsgConsumer_ReceiveTimeout(
    tibemsMsgConsumer msgConsumer,
    tibemsMsg* message,
    tibems_long timeout );
COBOL Call
CALL "tibemsMsgConsumer_ReceiveTimeout"
USING BY VALUE msgConsumer,
BY REFERENCE message,
BY VALUE timeout,
RETURNING tibems-status
END-CALL.
 
msgConsumer and message have usage pointer.
Parameters
 
When present, wait no longer than this interval (in milliseconds) for a message to arrive. Zero is a special value, which specifies no timeout (block indefinitely).
Remarks
This function consumes the next message from the consumer’s destination. When the destination does not have any messages ready, this function blocks:
 
When calling receive within a transaction, the consumer retains the message until transaction commits.
See Also
tibemsMsgConsumer_Receive on page 168
tibemsMsgConsumer_ReceiveNoWait on page 169

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved