Receives the next message if one is immediately available for delivery on the client side otherwise this method returns null. It is never an error for this method to return null, the time of Message availability varies so your client cannot rely on this method to receive a message immediately after one has been sent.

Namespace:  Apache.NMS
Assembly:  Apache.NMS (in Apache.NMS.dll)

Syntax

Visual Basic
Function ReceiveNoWait As IMessage
C#
IMessage ReceiveNoWait()
Visual C++
IMessage^ ReceiveNoWait()
JavaScript
function receiveNoWait();

See Also