tibemsMsgConsumer_ReceiveTimeout
Function
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.
 
		
 
	 Remarks
This function consumes the next message from the consumer’s destination. When the destination does not have any messages ready, this function blocks:
- If a message arrives at the destination, this call immediately consumes that message and returns.
 - If the (non-zero) timeout elapses before a message arrives, this call returns TIBEMS_TIMEOUT.
 - If another thread closes the consumer, this call returns TIBEMS_INTR.
 
When calling receive within a transaction, the consumer retains the message until transaction commits.
Copyright © 2021. Cloud Software Group, Inc. All Rights Reserved. 
