Receives the next message if one is immediately available.
Namespace:
Kaazing.JMSReturn Value
the next message produced for this message consumer, or null if one is not availableAssembly: 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
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to receive the next message due to some internal error. |