Receives the next message if one is immediately available.

Return Value

the next message produced for this message consumer, or null if one is not available

Namespace:  Kaazing.JMS
Assembly:  Kaazing.JMS (in Kaazing.JMS.dll)

Syntax

Visual Basic
Function ReceiveNoWait As IMessage
C#
IMessage ReceiveNoWait()
Visual C++
IMessage^ ReceiveNoWait()

Return Value

the next message produced for this message consumer, or null if one is not available

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to receive the next message due to some internal error.

See Also