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.MessagingAssembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.26.0
IMessage ReceiveMsg(
int timeout
)
- timeout Int32
- Timeout in milliseconds, 0 means no wait.
IMessage
The 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
OperationErrorException |
An OperationErrorException is thrown when this method fails.
The exception will contain one of these return codes:
|