Solclient
IFlowReceiveMsg Method |
Receives a message from a specified transacted Flow.
It waits until a timeout or a message is received. No wait
if timeout is zero.
Applications must later call .Dispose() on the received message to release it.
Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 7.2.1.27 (7.2.1.27)
Syntax
IMessage ReceiveMsg( int timeout )
Function ReceiveMsg ( timeout As Integer ) As IMessage
IMessage^ ReceiveMsg( int timeout )
Parameters
- timeout
- Type: SystemInt32
Timeout in milliseconds, 0 means no wait.
Return Value
Type: IMessageThe received message is returned as a IMessage A null mussage is returned under these circumstances: The queue is empty and a timeout occured The queue is empty and the timeout was zero The flow is not a transacted flow
Exceptions
Exception | Condition |
---|---|
OperationErrorException |
An OperationErrorException is thrown when this method fails.
The exception will contain one of these return codes:
|
See Also