10.27.03

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.

Definition

Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.27.0
C#
IMessage ReceiveMsg(
	int timeout
)

Parameters

timeout  Int32
Timeout in milliseconds, 0 means no wait.

Return Value

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

Exceptions

OperationErrorException An OperationErrorException is thrown when this method fails. The exception will contain one of these return codes:

See Also