Method
Declaration
Purpose
Receive a message (synchronous).
Parameter
|
Description
|
timeout
|
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).
When absent, the default value is zero.
|
Remarks
This method consumes the next message from the destination.
When the destination does not have any messages ready, this method blocks:
- If a message arrives at the destination, this call immediately returns that message.
- If the (non-zero) timeout elapses before a message arrives, this call returns null.
- If another thread closes the consumer, this call returns null.
When calling receive within a transaction, the consumer retains the message until transaction commits.
TIBCO Enterprise Message Service™ .NET Reference
System Release 4.3,
February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com
|